Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix eslint in account stories
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Aug 16, 2017
1 parent 61d9a3c commit a65f7b0
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions src/components/account/stories.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
import React from 'react';
import { Provider } from 'react-redux';

import { storiesOf } from '@storybook/react';
import Account from './accountComponent';
import Account from './account';
import Address from './address';
import store from '../../store';

storiesOf('Account', module)
.add('delegate', () => (
<Account
peers={{
status: {
online: true,
},
data: {
options: {
name: 'testy',
<Provider store={store}>
<Account
peers={{
status: {
online: true,
},
currentPeer: 'testpeer',
port: 8000,
},
}}
account={{
isDelegate: true,
username: 'testy',
address: '9396639332432599292L',
}}
balance="3.1415926535"
/>
data: {
options: {
name: 'testy',
},
currentPeer: 'testpeer',
port: 8000,
},
}}
account={{
isDelegate: true,
address: '9396639332432599292L',
delegate: {
username: 'testy',
},
}}
balance="3.1415926535"
/>
</Provider>
));

storiesOf('Address', module)
.add('delegate', () => (
<Address
isDelegate={true}
username="testy"
delegate= {{ username: 'testy' }}
address="9396639332432599292L"
/>
))
Expand Down

0 comments on commit a65f7b0

Please sign in to comment.