UserSettings.tsx 713 B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import { useTranslation } from 'next-i18next';
  3. import { BasicInfoSettings } from './BasicInfoSettings';
  4. import ProfileImageSettings from './ProfileImageSettings';
  5. const UserSettings = React.memo((): JSX.Element => {
  6. const { t } = useTranslation();
  7. return (
  8. <div data-testid="grw-user-settings">
  9. <div className="mb-5">
  10. <h2 className="border-bottom my-4">{t('Basic Info')}</h2>
  11. <BasicInfoSettings />
  12. </div>
  13. <div className="mb-5">
  14. <h2 className="border-bottom my-4">{t('Set Profile Image')}</h2>
  15. <ProfileImageSettings />
  16. </div>
  17. </div>
  18. );
  19. });
  20. UserSettings.displayName = 'UserSettings';
  21. export default UserSettings;