-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
812 additions
and
190 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
500 changes: 500 additions & 0 deletions
500
apps/wallet-mobile/src/features/Exchange/illustrations/PreprodNoticeIllustration.tsx
Large diffs are not rendered by default.
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
51 changes: 51 additions & 0 deletions
51
...tures/Exchange/useCases/CreateExchangeOrderScreen/ShowPreprodNotice/ShowPreprodNotice.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,51 @@ | ||
import {useTheme} from '@yoroi/theme' | ||
import * as React from 'react' | ||
import {StyleSheet, Text, View} from 'react-native' | ||
|
||
import {Space} from '../../../../../components/Space/Space' | ||
import {useStrings} from '../../../common/useStrings' | ||
import {PreprodNoticeIllustration} from '../../../illustrations/PreprodNoticeIllustration' | ||
|
||
export const ShowPreprodNotice = () => { | ||
const {styles} = useStyles() | ||
const strings = useStrings() | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<Space height="_2xl" /> | ||
|
||
<PreprodNoticeIllustration /> | ||
|
||
<Space height="lg" /> | ||
|
||
<Text style={styles.title}>{strings.createOrderPreprodNoticeTitle}</Text> | ||
|
||
<Text style={styles.text}>{strings.createOrderPreprodNoticeText}</Text> | ||
</View> | ||
) | ||
} | ||
|
||
const useStyles = () => { | ||
const {atoms, color} = useTheme() | ||
const styles = StyleSheet.create({ | ||
container: { | ||
...atoms.p_lg, | ||
flex: 1, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
title: { | ||
color: color.gray_c900, | ||
...atoms.heading_3_medium, | ||
...atoms.px_sm, | ||
textAlign: 'center', | ||
}, | ||
text: { | ||
color: color.text_gray_medium, | ||
...atoms.body_1_lg_regular, | ||
textAlign: 'center', | ||
maxWidth: 300, | ||
}, | ||
}) | ||
return {styles} | ||
} |
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.