Browse Source

Update storie

master
Loëck Vézien 7 years ago
parent
commit
ca16db381b
No known key found for this signature in database GPG Key ID: CBCDCE384E853AC4
  1. 4
      src/components/DeviceConnect/stories.js

4
src/components/DeviceConnect/stories.js

@ -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))}

Loading…
Cancel
Save