-
Notifications
You must be signed in to change notification settings - Fork 48
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 dangerous-action-modal-withdrawal-dialog
- Loading branch information
Showing
19 changed files
with
484 additions
and
533 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// @flow | ||
|
||
import React from 'react' | ||
import {storiesOf} from '@storybook/react-native' | ||
import {action} from '@storybook/addon-actions' | ||
|
||
import {Button} from '../UiKit' | ||
|
||
import FingerprintScreenBase from './FingerprintScreenBase' | ||
|
||
storiesOf('FingerprintScreenBase', module) | ||
.add('Default', () => <FingerprintScreenBase headings={['heading1', 'heading2']} buttons={[]} />) | ||
.add('with onGoBack', () => ( | ||
<FingerprintScreenBase headings={['heading1', 'heading2']} buttons={[]} onGoBack={action('goBack')} /> | ||
)) | ||
.add('with buttons', () => ( | ||
<FingerprintScreenBase | ||
headings={['heading1', 'heading2']} | ||
subHeadings={['subheading1', 'subheading2']} | ||
buttons={[ | ||
<Button key={'button1'} title={'button1'} onPress={action('button1')} />, | ||
<Button key={'button2'} title={'button2'} onPress={action('button2')} />, | ||
]} | ||
onGoBack={action('goBack')} | ||
addWelcomeMessage | ||
error={'this is the error messaqge'} | ||
/> | ||
)) | ||
.add('with error', () => ( | ||
<FingerprintScreenBase | ||
headings={['heading1', 'heading2']} | ||
subHeadings={['subheading1', 'subheading2']} | ||
buttons={[ | ||
<Button key={'button1'} title={'button1'} onPress={action('button1')} />, | ||
<Button key={'button2'} title={'button2'} onPress={action('button2')} />, | ||
]} | ||
onGoBack={action('goBack')} | ||
error={'this is the error messaqge'} | ||
/> | ||
)) | ||
.add('with welcome message', () => ( | ||
<FingerprintScreenBase | ||
headings={['heading1', 'heading2']} | ||
subHeadings={['subheading1', 'subheading2']} | ||
buttons={[ | ||
<Button key={'button1'} title={'button1'} onPress={action('button1')} />, | ||
<Button key={'button2'} title={'button2'} onPress={action('button2')} />, | ||
]} | ||
onGoBack={action('goBack')} | ||
addWelcomeMessage | ||
error={'this is the error messaqge'} | ||
/> | ||
)) |
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
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,9 @@ | ||
// @flow | ||
|
||
import React from 'react' | ||
|
||
import {storiesOf} from '@storybook/react-native' | ||
|
||
import ChangeWalletName from './ChangeWalletName' | ||
|
||
storiesOf('ChangeWalletName', module).add('Default', ({navigation}) => <ChangeWalletName navigation={navigation} />) |
Oops, something went wrong.