This PR was created by [GitStart](https://gitstart.com/) to address the requirements from this ticket: [TWNTY-7533](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7533). --- Description \ \ Move Section component from twenty-front to twenty-ui and update imports\ \ \ Fixes twentyhq/private-issues#85 Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
import { H2Title, Section } from 'twenty-ui';
|
|
|
|
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
|
|
import { ChangePassword } from '@/settings/profile/components/ChangePassword';
|
|
import { DeleteAccount } from '@/settings/profile/components/DeleteAccount';
|
|
import { EmailField } from '@/settings/profile/components/EmailField';
|
|
import { NameFields } from '@/settings/profile/components/NameFields';
|
|
import { ProfilePictureUploader } from '@/settings/profile/components/ProfilePictureUploader';
|
|
import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath';
|
|
import { SettingsPath } from '@/types/SettingsPath';
|
|
import { SubMenuTopBarContainer } from '@/ui/layout/page/components/SubMenuTopBarContainer';
|
|
|
|
export const SettingsProfile = () => (
|
|
<SubMenuTopBarContainer
|
|
title="Profile"
|
|
links={[
|
|
{
|
|
children: 'User',
|
|
href: getSettingsPagePath(SettingsPath.ProfilePage),
|
|
},
|
|
{ children: 'Profile' },
|
|
]}
|
|
>
|
|
<SettingsPageContainer>
|
|
<Section>
|
|
<H2Title title="Picture" />
|
|
<ProfilePictureUploader />
|
|
</Section>
|
|
<Section>
|
|
<H2Title title="Name" description="Your name as it will be displayed" />
|
|
<NameFields />
|
|
</Section>
|
|
<Section>
|
|
<H2Title
|
|
title="Email"
|
|
description="The email associated to your account"
|
|
/>
|
|
<EmailField />
|
|
</Section>
|
|
<Section>
|
|
<ChangePassword />
|
|
</Section>
|
|
<Section>
|
|
<DeleteAccount />
|
|
</Section>
|
|
</SettingsPageContainer>
|
|
</SubMenuTopBarContainer>
|
|
);
|