mnemonic dialog styles
This commit is contained in:
parent
0a6fc415ea
commit
18f66c53b2
@ -14,19 +14,20 @@ const DialogComponent = ({ visible, hideDialog, contentText }: CustomDialogProps
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={visible} onClose={hideDialog}>
|
<Dialog open={visible} onClose={hideDialog}>
|
||||||
<DialogTitle>Mnemonic</DialogTitle>
|
<DialogTitle style={{...styles.mnemonicTitle}}>Mnemonic</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent style={{...styles.mnemonicContainer}}>
|
||||||
<Typography variant="h6" component="div" style={{ color: 'rgba(0, 0, 0, 0.87)' }}>
|
<Typography component="div" >
|
||||||
Your mnemonic provides full access to your wallet and funds. Make sure to note it down.
|
Your mnemonic provides full access to your wallet and funds. <br/>
|
||||||
|
Make sure to note it down.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="h6" component="div" style={{ ...styles.dialogWarning }}>
|
<Typography component="div" style={{ ...styles.mnomonicDialogWarning }}>
|
||||||
Do not share your mnemonic with anyone
|
Do not share your mnemonic with anyone
|
||||||
</Typography>
|
</Typography>
|
||||||
<GridView words={words} />
|
<GridView words={words} />
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
<DialogActions>
|
<DialogActions style={{...styles.mnemonicButtonRow}}>
|
||||||
<Button onClick={copyMnemonic}>Copy</Button>
|
<Button style={{...styles.mnemonicButton}} onClick={copyMnemonic}>Copy</Button>
|
||||||
<Button onClick={hideDialog}>Done</Button>
|
<Button style={{...styles.mnemonicButton}} onClick={hideDialog}>Done</Button>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
|
@ -7,7 +7,7 @@ import { GridViewProps } from '../types';
|
|||||||
|
|
||||||
const GridView = ({ words }: GridViewProps) => {
|
const GridView = ({ words }: GridViewProps) => {
|
||||||
return (
|
return (
|
||||||
<View style={styles.gridContainer}>
|
<View style={styles.mnemonicGridContainer}>
|
||||||
{words.map((word, index) => (
|
{words.map((word, index) => (
|
||||||
<View key={index} style={styles.gridItem}>
|
<View key={index} style={styles.gridItem}>
|
||||||
<Text>{index + 1}. </Text>
|
<Text>{index + 1}. </Text>
|
||||||
|
@ -75,7 +75,36 @@ const styles = StyleSheet.create({
|
|||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
},
|
},
|
||||||
dialogWarning: {
|
dialogWarning: {
|
||||||
color: 'red',
|
color: '#FFA3A8',
|
||||||
|
},
|
||||||
|
mnemonicTitle:{
|
||||||
|
backgroundColor: '#18181A',
|
||||||
|
},
|
||||||
|
mnemonicContainer:{
|
||||||
|
backgroundColor: '#18181A',
|
||||||
|
},
|
||||||
|
mnomonicDialogWarning: {
|
||||||
|
color: '#FFA3A8',
|
||||||
|
marginTop: 10
|
||||||
|
},
|
||||||
|
mnemonicButtonRow: {
|
||||||
|
paddingRight: 40,
|
||||||
|
backgroundColor: '#18181A'
|
||||||
|
},
|
||||||
|
mnemonicButton:{
|
||||||
|
backgroundColor: '#0000F4',
|
||||||
|
color: 'white',
|
||||||
|
padding: 2,
|
||||||
|
marginBottom: 20
|
||||||
|
},
|
||||||
|
mnemonicGridContainer: {
|
||||||
|
flexDirection: 'row',
|
||||||
|
flexWrap: 'wrap',
|
||||||
|
justifyContent: 'center',
|
||||||
|
marginTop: 20,
|
||||||
|
paddingBottom: 30,
|
||||||
|
borderBottomWidth: 1,
|
||||||
|
borderBottomColor: '#29292E'
|
||||||
},
|
},
|
||||||
gridContainer: {
|
gridContainer: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
@ -83,14 +112,13 @@ const styles = StyleSheet.create({
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
},
|
},
|
||||||
gridItem: {
|
gridItem: {
|
||||||
width: '25%',
|
width: '30%',
|
||||||
margin: 8,
|
margin: 4,
|
||||||
padding: 6,
|
padding: 4,
|
||||||
borderWidth: 1,
|
borderRadius: 4,
|
||||||
borderColor: '#ccc',
|
|
||||||
borderRadius: 8,
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'flex-start',
|
justifyContent: 'flex-start',
|
||||||
|
backgroundColor: '#29292E'
|
||||||
},
|
},
|
||||||
HDcontainer: {
|
HDcontainer: {
|
||||||
marginTop: 24,
|
marginTop: 24,
|
||||||
|
Loading…
Reference in New Issue
Block a user