UserSettings.tsx 774 B

123456789101112131415161718192021222324252627
  1. import React, { type JSX } 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 fs-4 mt-4 pb-1">{t('Basic Info')}</h2>
  11. <BasicInfoSettings />
  12. </div>
  13. <div className="mb-5">
  14. <h2 className="border-bottom fs-4 mt-3 mt-md-5 pb-1">
  15. {t('Set Profile Image')}
  16. </h2>
  17. <ProfileImageSettings />
  18. </div>
  19. </div>
  20. );
  21. });
  22. UserSettings.displayName = 'UserSettings';
  23. export default UserSettings;