-
Notifications
You must be signed in to change notification settings - Fork 22
/
Home.stories.tsx
60 lines (55 loc) · 1.38 KB
/
Home.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
56
57
58
59
60
import { ComponentMeta, ComponentStory } from '@storybook/react'
import { DaoCard } from '@dao-dao/stateful'
import { makeDappLayoutDecorator } from '@dao-dao/storybook/decorators'
import { FeaturedDaos as FeaturedDaosScrollerStory } from '../components/HorizontalScroller.stories'
import { Home } from './Home'
export default {
title: 'DAO DAO / packages / stateless / pages / Home',
component: Home,
} as ComponentMeta<typeof Home>
const Template: ComponentStory<typeof Home> = (args) => <Home {...args} />
export const Default = Template.bind({})
Default.args = {
stats: {
all: {
daos: 1234,
proposals: 5678,
votes: 90123,
uniqueVoters: 4567,
},
month: {
daos: 234,
proposals: 678,
votes: 9123,
uniqueVoters: 567,
},
week: {
daos: 34,
proposals: 78,
votes: 123,
uniqueVoters: 67,
},
chains: 10,
tvl: 1234567890,
},
DaoCard,
chainGovDaos: FeaturedDaosScrollerStory.args!.items!,
featuredDaos: FeaturedDaosScrollerStory.args!.items!,
openSearch: () => alert('search'),
}
Default.parameters = {
design: {
type: 'figma',
url: 'https://www.figma.com/file/ZnQ4SMv8UUgKDZsR5YjVGH/DAO-DAO-2.0?node-id=272%3A64768',
},
nextRouter: {
asPath: '/',
},
}
Default.decorators = [
makeDappLayoutDecorator({
navigationProps: {
walletConnected: false,
},
}),
]