-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
1fc3bc8
commit 4616b27
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
screens/Profile/components/moleculs/AddAccount/ImportStep.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,77 @@ | ||
import { StyleSheet, Text, View } from "react-native"; | ||
import { observer } from "mobx-react-lite"; | ||
import { Phrase } from "classes"; | ||
import { COLOR } from "utils"; | ||
import { Button } from "components/atoms"; | ||
import { PhraseHorisontal } from "components/moleculs"; | ||
import { Title } from "../../atoms"; | ||
|
||
type CreateStepProps = { | ||
onPressPaste(): void; | ||
phrase: Phrase; | ||
}; | ||
|
||
export default observer(({ phrase, onPressPaste }: CreateStepProps) => { | ||
return ( | ||
<> | ||
<View style={styles.wrapper}> | ||
<Title style={styles.title}>Import Mnemonics</Title> | ||
<Text style={styles.caption}> | ||
This is the only way you will be able to{"\n"} | ||
recover your account.Please store it {"\n"} | ||
somewhere safe! | ||
</Text> | ||
</View> | ||
{phrase.words.length > 0 ? ( | ||
<PhraseHorisontal | ||
phrase={phrase} | ||
contentContainerStyle={styles.phrase} | ||
/> | ||
) : ( | ||
<View style={{ alignItems: "center" }}> | ||
<Button | ||
text="Paste" | ||
onPress={onPressPaste} | ||
textStyle={styles.buttonText} | ||
contentContainerStyle={styles.buttonContent} | ||
/> | ||
</View> | ||
)} | ||
</> | ||
); | ||
}); | ||
|
||
const styles = StyleSheet.create({ | ||
wrapper: { | ||
marginTop: 15, | ||
marginHorizontal: 26, | ||
}, | ||
title: { | ||
fontSize: 16, | ||
lineHeight: 20, | ||
textAlign: "center", | ||
|
||
marginBottom: 30, | ||
}, | ||
caption: { | ||
fontFamily: "CircularStd", | ||
fontStyle: "normal", | ||
fontWeight: "500", | ||
fontSize: 14, | ||
lineHeight: 18, | ||
|
||
textAlign: "center", | ||
color: COLOR.Marengo, | ||
marginBottom: 26, | ||
}, | ||
phrase: { | ||
paddingHorizontal: 26, | ||
}, | ||
buttonText: { | ||
fontSize: 12, | ||
}, | ||
buttonContent: { | ||
paddingHorizontal: 16, | ||
paddingVertical: 8, | ||
}, | ||
}); |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as CreateStep } from "./CreateStep"; | ||
export { default as ChooseStep } from "./ChooseStep"; | ||
export { default as InputNameStep } from "./InputNameStep"; | ||
export { default as ImportStep } from "./ImportStep"; |