|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
import React from 'react' |
|
|
|
import { storiesOf } from '@storybook/react' |
|
|
|
import { select, text } from '@storybook/addon-knobs' |
|
|
|
import { boolean, select, text } from '@storybook/addon-knobs' |
|
|
|
import { action } from '@storybook/addon-actions' |
|
|
|
|
|
|
|
import DeviceConnect from 'components/DeviceConnect' |
|
|
@ -35,7 +35,7 @@ const devices = [ |
|
|
|
|
|
|
|
stories.add('DeviceConnect', () => ( |
|
|
|
<DeviceConnect |
|
|
|
accountName={text('accountName', 'Test Account')} |
|
|
|
accountName={boolean('withAccount', true) ? text('accountName', 'Test Account') : null} |
|
|
|
coinType={select('coinType', [0, 1, 145, 156, 2, 3, 5], 0)} |
|
|
|
appOpened={select('appOpened', ['', 'success', 'fail'], '')} |
|
|
|
devices={devices.slice(0, select('devices', [0, 1, 2, 3], 0))} |
|
|
|