UserSettings.jsx 819 B

1234567891011121314151617181920212223242526272829303132333435
  1. import React, { Fragment } from 'react';
  2. import PropTypes from 'prop-types';
  3. import { withTranslation } from 'react-i18next';
  4. import BasicInfoSettings from './BasicInfoSettings';
  5. import ProfileImageSettings from './ProfileImageSettings';
  6. class UserSettings extends React.Component {
  7. render() {
  8. const { t } = this.props;
  9. return (
  10. <Fragment>
  11. <div className="mb-5">
  12. <h2 className="border-bottom my-4">{t('Basic Info')}</h2>
  13. <BasicInfoSettings />
  14. </div>
  15. <div className="mb-5">
  16. <h2 className="border-bottom my-4">{t('Set Profile Image')}</h2>
  17. <ProfileImageSettings />
  18. </div>
  19. </Fragment>
  20. );
  21. }
  22. }
  23. UserSettings.propTypes = {
  24. t: PropTypes.func.isRequired, // i18next
  25. };
  26. export default withTranslation()(UserSettings);