|
|
@@ -2,21 +2,17 @@ import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
-class AdminUpdateButtonRow extends React.PureComponent {
|
|
|
+const AdminUpdateButtonRow = (props) => {
|
|
|
+ const { t } = props;
|
|
|
|
|
|
- render() {
|
|
|
- const { t } = this.props;
|
|
|
-
|
|
|
- return (
|
|
|
- <div className="row my-3">
|
|
|
- <button type="button" className="btn btn-primary" onClick={this.props.onClick} disabled={this.props.disabled}>{ t('Update') }</button>
|
|
|
- </div>
|
|
|
+ return (
|
|
|
+ <div className="row my-3">
|
|
|
<div className="offset-4 col-5">
|
|
|
+ <button type="button" className="btn btn-primary" onClick={props.onClick} disabled={props.disabled}>{ t('Update') }</button>
|
|
|
</div>
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+};
|
|
|
|
|
|
AdminUpdateButtonRow.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|