diff --git a/packages/twenty-front/src/App.tsx b/packages/twenty-front/src/App.tsx index df2cfc310..2a27f6f92 100644 --- a/packages/twenty-front/src/App.tsx +++ b/packages/twenty-front/src/App.tsx @@ -18,6 +18,7 @@ import { NotFound } from '~/pages/not-found/NotFound'; import { Opportunities } from '~/pages/opportunities/Opportunities'; import { SettingsAccounts } from '~/pages/settings/accounts/SettingsAccounts'; import { SettingsAccountsEmails } from '~/pages/settings/accounts/SettingsAccountsEmails'; +import { SettingsNewAccount } from '~/pages/settings/accounts/SettingsNewAccount'; import { SettingsNewObject } from '~/pages/settings/data-model/SettingsNewObject'; import { SettingsObjectDetail } from '~/pages/settings/data-model/SettingsObjectDetail'; import { SettingsObjectEdit } from '~/pages/settings/data-model/SettingsObjectEdit'; @@ -76,6 +77,10 @@ export const App = () => { path={SettingsPath.Accounts} element={} /> + } + /> } diff --git a/packages/twenty-front/src/modules/types/SettingsPath.ts b/packages/twenty-front/src/modules/types/SettingsPath.ts index 0c1e0cb27..c23cb7bc3 100644 --- a/packages/twenty-front/src/modules/types/SettingsPath.ts +++ b/packages/twenty-front/src/modules/types/SettingsPath.ts @@ -2,6 +2,7 @@ export enum SettingsPath { ProfilePage = 'profile', Appearance = 'profile/appearance', Accounts = 'accounts', + NewAccount = 'accounts/new', AccountsEmails = 'accounts/emails', Objects = 'objects', ObjectDetail = 'objects/:objectSlug', diff --git a/packages/twenty-front/src/pages/settings/accounts/SettingsNewAccount.tsx b/packages/twenty-front/src/pages/settings/accounts/SettingsNewAccount.tsx new file mode 100644 index 000000000..995ba4c5d --- /dev/null +++ b/packages/twenty-front/src/pages/settings/accounts/SettingsNewAccount.tsx @@ -0,0 +1,19 @@ +import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer'; +import { IconSettings } from '@/ui/display/icon'; +import { SubMenuTopBarContainer } from '@/ui/layout/page/SubMenuTopBarContainer'; +import { Breadcrumb } from '@/ui/navigation/bread-crumb/components/Breadcrumb'; + +export const SettingsNewAccount = () => { + return ( + + + + + + ); +}; diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx new file mode 100644 index 000000000..746093392 --- /dev/null +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx @@ -0,0 +1,27 @@ +import { Meta, StoryObj } from '@storybook/react'; + +import { SettingsNewAccount } from '~/pages/settings/accounts/SettingsNewAccount'; +import { + PageDecorator, + PageDecoratorArgs, +} from '~/testing/decorators/PageDecorator'; +import { graphqlMocks } from '~/testing/graphqlMocks'; + +const meta: Meta = { + title: 'Pages/Settings/Accounts/SettingsNewAccount', + component: SettingsNewAccount, + decorators: [PageDecorator], + args: { + routePath: '/settings/accounts/new', + }, + parameters: { + layout: 'fullscreen', + msw: graphqlMocks, + }, +}; + +export default meta; + +export type Story = StoryObj; + +export const Default: Story = {};