-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wallet-setup): Preparing wallet state (#3217)
- Loading branch information
Showing
13 changed files
with
437 additions
and
354 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...wallet-mobile/src/features/SetupWallet/common/PreparingWallet/PreparingWallet.stories.tsx
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,16 @@ | ||
import {storiesOf} from '@storybook/react-native' | ||
import React from 'react' | ||
import {StyleSheet, View} from 'react-native' | ||
|
||
import {PreparingWallet} from './PreparingWallet' | ||
|
||
storiesOf('AddWallet PreparingWallet', module) | ||
.addDecorator((story) => <View style={styles.container}>{story()}</View>) | ||
.add('initial', () => <PreparingWallet />) | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
padding: 16, | ||
}, | ||
}) |
34 changes: 34 additions & 0 deletions
34
apps/wallet-mobile/src/features/SetupWallet/common/PreparingWallet/PreparingWallet.tsx
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,34 @@ | ||
import {useTheme} from '@yoroi/theme' | ||
import * as React from 'react' | ||
import {StyleSheet, Text, View} from 'react-native' | ||
|
||
import {useStrings} from '../useStrings' | ||
|
||
export const PreparingWallet = () => { | ||
const strings = useStrings() | ||
const {styles} = useStyles() | ||
|
||
return ( | ||
<View style={styles.root}> | ||
<Text style={styles.title}>{strings.preparingWallet}</Text> | ||
</View> | ||
) | ||
} | ||
|
||
const useStyles = () => { | ||
const {theme} = useTheme() | ||
const styles = StyleSheet.create({ | ||
root: { | ||
flex: 1, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
title: { | ||
color: theme.color.primary[500], | ||
textAlign: 'center', | ||
...theme.typography['heading-2-medium'], | ||
}, | ||
}) | ||
|
||
return {styles} as const | ||
} |
File renamed without changes.
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
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
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
Oops, something went wrong.