-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:added an empty page with the route: /settings/accounts/new. (#2960)
* feat:added an empty page with the route: /settings/accounts/new. * chore: addressed PR feedback, added Storybook page * fix: lint fixes --------- Co-authored-by: Lakshay saini <[email protected]>
- Loading branch information
1 parent
73e03dd
commit 45deb46
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/twenty-front/src/pages/settings/accounts/SettingsNewAccount.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<SubMenuTopBarContainer Icon={IconSettings} title="Settings"> | ||
<SettingsPageContainer> | ||
<Breadcrumb | ||
links={[ | ||
{ children: 'Accounts', href: '/settings/accounts' }, | ||
{ children: `New` }, | ||
]} | ||
/> | ||
</SettingsPageContainer> | ||
</SubMenuTopBarContainer> | ||
); | ||
}; |
27 changes: 27 additions & 0 deletions
27
packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsNewAccount.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<PageDecoratorArgs> = { | ||
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<typeof SettingsNewAccount>; | ||
|
||
export const Default: Story = {}; |