meriadec
7 years ago
21 changed files with 126 additions and 110 deletions
@ -1,28 +1,37 @@ |
|||
// @flow
|
|||
|
|||
import React from 'react' |
|||
import { getDefaultUnitByCoinType } from '@ledgerhq/currencies' |
|||
import { storiesOf } from '@storybook/react' |
|||
import { boolean } from '@storybook/addon-knobs' |
|||
|
|||
import TransactionsList from 'components/TransactionsList' |
|||
import OperationsList from 'components/OperationsList' |
|||
|
|||
const stories = storiesOf('Components', module) |
|||
|
|||
const transactions = [ |
|||
const unit = getDefaultUnitByCoinType(0) |
|||
|
|||
const operations = [ |
|||
{ |
|||
address: '5c6ea1716520c7d6e038d36a3223faced3c', |
|||
hash: '5c6ea1716520c7d6e038d36a3223faced3c4b8f7ffb69d9fb5bd527d562fdb62', |
|||
balance: 130000000, |
|||
amount: 130000000, |
|||
receivedAt: '2018-01-09T16:03:52Z', |
|||
account: { |
|||
unit, |
|||
}, |
|||
}, |
|||
{ |
|||
address: '27416a48caab90fab053b507b8b6b9d4', |
|||
hash: '27416a48caab90fab053b507b8b6b9d48fba75421d3bfdbae4b85f64024bc9c4', |
|||
balance: 65000000, |
|||
amount: -65000000, |
|||
receivedAt: '2018-01-09T16:02:40Z', |
|||
account: { |
|||
unit, |
|||
}, |
|||
}, |
|||
] |
|||
|
|||
stories.add('TransactionsList', () => ( |
|||
<TransactionsList transactions={transactions} canShowMore={boolean('canShowMore')} /> |
|||
stories.add('OperationsList', () => ( |
|||
<OperationsList operations={operations} canShowMore={boolean('canShowMore')} /> |
|||
)) |
Loading…
Reference in new issue