/
Add.stories.js
38 lines (36 loc) · 1.17 KB
/
Add.stories.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
// @flow
import React from 'react';
import { storiesOf } from '@storybook/react';
import { boolean } from '@storybook/addon-knobs';
import { isIncentivizedTestnetTheme } from '../../_support/utils';
// Screens
import WalletAdd from '../../../../source/renderer/app/components/wallet/WalletAdd';
const wrapperStyles = {
alignItems: 'center',
backgroundColor: 'var(--theme-main-body-background-color)',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
};
/* eslint-disable consistent-return */
storiesOf('Wallets|Add Wallet', module)
// ====== Stories ======
.add('Add', (props: { currentTheme: string }) => (
<div style={wrapperStyles}>
<WalletAdd
onCreate={() => {}}
onRestore={() => {}}
onImport={() => {}}
isMainnet={boolean('isMainnet', true)}
isTestnet={boolean('isTestnet', false)}
isShelleyActivated={boolean('isShelleyActivated', true)}
isProduction
isIncentivizedTestnet={isIncentivizedTestnetTheme(props.currentTheme)}
isMaxNumberOfWalletsReached={boolean(
'isMaxNumberOfWalletsReached',
false
)}
/>
</div>
));