-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Settings/Integrations/Integration Detail page stories
- Loading branch information
1 parent
c846143
commit 1b569b5
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...y-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDetail.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,29 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; | ||
import { SettingsPath } from '@/types/SettingsPath'; | ||
import { SettingsIntegrationDetail } from '~/pages/settings/integrations/SettingsIntegrationDetail'; | ||
import { | ||
PageDecorator, | ||
PageDecoratorArgs, | ||
} from '~/testing/decorators/PageDecorator'; | ||
import { graphqlMocks } from '~/testing/graphqlMocks'; | ||
|
||
const meta: Meta<PageDecoratorArgs> = { | ||
title: 'Pages/Settings/Integrations/SettingsIntegrationDetail', | ||
component: SettingsIntegrationDetail, | ||
decorators: [PageDecorator], | ||
args: { | ||
routePath: getSettingsPagePath(SettingsPath.IntegrationDetail), | ||
routeParams: { ':integrationKey': 'postgresql' }, | ||
}, | ||
parameters: { | ||
msw: graphqlMocks, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export type Story = StoryObj<typeof SettingsIntegrationDetail>; | ||
|
||
export const Default: Story = {}; |
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