Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into wallet-sync
- Loading branch information
Showing
15 changed files
with
135 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {storiesOf} from '@storybook/react-native' | ||
import React from 'react' | ||
import {Text, View} from 'react-native' | ||
|
||
import {mocks, QueryProvider} from '../../../storybook' | ||
import {SelectedWalletProvider} from '../../SelectedWallet' | ||
import {Spacer} from '..' | ||
import {AssetItem} from './AssetItem' | ||
|
||
const primaryTokenInfo = mocks.wallet.primaryTokenInfo | ||
const primaryBalance = mocks.balances[primaryTokenInfo.id] | ||
|
||
const tokenInfo = mocks.tokenInfos['698a6ea0ca99f315034072af31eaac6ec11fe8558d3f48e9775aab9d.7444524950'] | ||
const tokenBalance = mocks.balances['698a6ea0ca99f315034072af31eaac6ec11fe8558d3f48e9775aab9d.7444524950'] | ||
|
||
storiesOf('Components/AssetItem', module).add('Gallery', () => ( | ||
<QueryProvider> | ||
<SelectedWalletProvider wallet={mocks.wallet}> | ||
<View style={{flex: 1, justifyContent: 'center', padding: 16}}> | ||
<Text>Fungible primary token</Text> | ||
|
||
<AssetItem | ||
tokenInfo={primaryTokenInfo} | ||
balance={primaryBalance} | ||
style={{backgroundColor: 'white', padding: 16, borderRadius: 8}} | ||
/> | ||
|
||
<Spacer height={40} /> | ||
|
||
<Text>Fungible non-primary token</Text> | ||
|
||
<AssetItem | ||
tokenInfo={tokenInfo} | ||
balance={tokenBalance} | ||
style={{backgroundColor: 'white', padding: 16, borderRadius: 8}} | ||
/> | ||
</View> | ||
</SelectedWalletProvider> | ||
</QueryProvider> | ||
)) |
Oops, something went wrong.