-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDaoSdaWrappedTab.stories.tsx
55 lines (50 loc) · 1.45 KB
/
DaoSdaWrappedTab.stories.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { HomeRounded } from '@mui/icons-material'
import { ComponentMeta, ComponentStory } from '@storybook/react'
import { SuspenseLoader } from '@dao-dao/stateful'
import {
DaoPageWrapperDecorator,
makeSdaLayoutDecorator,
} from '@dao-dao/storybook/decorators'
import { DaoSplashHeaderProps, DaoTabId } from '@dao-dao/types'
import { DaoSplashHeader } from '../components'
import { Default as DaoSplashHeaderStory } from '../components/dao/DaoSplashHeader.stories'
import { DaoSdaWrappedTab } from './DaoSdaWrappedTab'
export default {
title: 'DAO DAO / packages / stateless / pages / DaoSdaWrappedTab',
component: DaoSdaWrappedTab,
decorators: [
// Direct ancestor of rendered story.
DaoPageWrapperDecorator,
makeSdaLayoutDecorator(),
],
} as ComponentMeta<typeof DaoSdaWrappedTab>
const Template: ComponentStory<typeof DaoSdaWrappedTab> = (args) => (
<DaoSdaWrappedTab {...args} />
)
export const Default = Template.bind({})
Default.args = {
allTabs: [
{
id: DaoTabId.Home,
label: 'Home',
Component: () => (
<DaoSplashHeader
{...(DaoSplashHeaderStory.args as DaoSplashHeaderProps)}
/>
),
Icon: HomeRounded,
IconFilled: HomeRounded,
},
],
tabId: DaoTabId.Home,
SuspenseLoader,
}
Default.parameters = {
design: {
type: 'figma',
url: 'https://www.figma.com/file/ZnQ4SMv8UUgKDZsR5YjVGH/DAO-DAO-2.0?node-id=317%3A28615',
},
nextRouter: {
asPath: '/core1',
},
}