-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorybook.requires.js
59 lines (53 loc) · 2.8 KB
/
storybook.requires.js
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
import { configure, addDecorator, addParameters } from '@storybook/react-native'
import '@storybook/addon-ondevice-notes/register'
import '@storybook/addon-ondevice-controls/register'
import '@storybook/addon-ondevice-backgrounds/register'
import '@storybook/addon-ondevice-actions/register'
import { decorators, parameters } from './preview'
if (decorators) {
decorators.forEach((decorator) => addDecorator(decorator))
}
if (parameters) {
addParameters(parameters)
}
const getStories = () => {
return [
require('../src/atoms/buttonV2/buttonV2.stories.tsx'),
require('../src/atoms/icon/icon.stories.tsx'),
require('../src/atoms/qrcode/qrcode.stories.tsx'),
require('../src/atoms/radioSelect/radioSelect.stories.tsx'),
require('../src/atoms/statusV2/statusV2.stories.tsx'),
require('../src/atoms/switch/switch.stories.tsx'),
require('../src/atoms/toastV2/toastv2.stories.tsx'),
require('../src/atoms/tooltip/tooltip.stories.tsx'),
require('../src/atoms/tooltipV2/tooltipV2.stories.tsx'),
require('../src/atoms/typographyV2/typographyV2.stories.tsx'),
require('../src/molecules/alertV2/alertV2.stories.tsx'),
require('../src/molecules/analyticsCard/analyticsCard.stories.tsx'),
require('../src/molecules/banner/banner.stories.tsx'),
require('../src/molecules/dropdown/dropdown.stories.tsx'),
require('../src/molecules/estimatedGas/estimatedGas.stories.tsx'),
require('../src/molecules/featureCard/featureCard.stories.tsx'),
require('../src/molecules/footerV2/footerV2.stories.tsx'),
require('../src/molecules/header/header.stories.tsx'),
require('../src/molecules/information/information.stories.tsx'),
require('../src/molecules/inputContainer/inputContainer.stories.tsx'),
require('../src/molecules/inputLayout/inputLayout.stories.tsx'),
require('../src/molecules/inputV2/inputV2.stories.tsx'),
require('../src/molecules/select/select.stories.tsx'),
require('../src/molecules/selectV2/selectV2.stories.tsx'),
require('../src/molecules/tokenCard/tokenCard.stories.tsx'),
require('../src/molecules/walletCard/walletCard.stories.tsx'),
require('../src/molecules/walletInfo/walletInfo.stories.tsx'),
require('../src/organisms/avatarPicker/avatarPicker.stories.tsx'),
require('../src/organisms/formStepHeader/formStepHeader.stories.tsx'),
require('../src/organisms/layout/layout.stories.tsx'),
require('../src/organisms/modal/modal.stories.tsx'),
require('../src/organisms/modalV2/modalV2.stories.tsx'),
require('../src/organisms/table/table.stories.tsx'),
require('../src/organisms/tokenSelect/tokenSelect.stories.tsx'),
require('../src/molecules/accountInfoDropdown/acountInfoDropdown.stories.tsx'),
require('../src/organisms/tokenSelectV2/tokenSelectV2.stories.tsx'),
]
}
configure(getStories, module, false)