webapp/src/pages/profile/profileSettings.page.tsx
Ilya Y 954d964384
Fix/profile update (#327)
Profile settings refactoring
2023-11-23 21:15:06 +03:00

22 lines
617 B
TypeScript

import { PageLayout } from '../../components/_shared/PageLayout'
import { AuthGuard } from '../../components/AuthGuard'
import { ProfileSettings } from '../../components/ProfileSettings'
import { useLocalize } from '../../context/localize'
import { ProfileFormProvider } from '../../context/profile'
export const ProfileSettingsPage = () => {
const { t } = useLocalize()
return (
<PageLayout title={t('Profile')}>
<AuthGuard>
<ProfileFormProvider>
<ProfileSettings />
</ProfileFormProvider>
</AuthGuard>
</PageLayout>
)
}
export const Page = ProfileSettingsPage