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