-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cb9ed4
commit b716da5
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
frontend/src/scenes/persons-management/PersonsManagementScene.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,37 @@ | ||
import { Meta, StoryFn } from '@storybook/react' | ||
import { router } from 'kea-router' | ||
import { useEffect } from 'react' | ||
import { App } from 'scenes/App' | ||
import { urls } from 'scenes/urls' | ||
|
||
const meta: Meta = { | ||
title: 'Scenes-App/Persons & Groups', | ||
parameters: { | ||
layout: 'fullscreen', | ||
viewMode: 'story', | ||
mockDate: '2023-07-04', // To stabilize relative dates | ||
}, | ||
decorators: [], | ||
} | ||
export default meta | ||
|
||
export const Persons: StoryFn = () => { | ||
useEffect(() => { | ||
router.actions.push(urls.persons()) | ||
}, []) | ||
return <App /> | ||
} | ||
|
||
export const Cohorts: StoryFn = () => { | ||
useEffect(() => { | ||
router.actions.push(urls.cohorts()) | ||
}, []) | ||
return <App /> | ||
} | ||
|
||
export const Groups: StoryFn = () => { | ||
useEffect(() => { | ||
router.actions.push(urls.groups(0)) | ||
}, []) | ||
return <App /> | ||
} |
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