chore: rename style and add back enabled check
This commit is contained in:
parent
360f3b76bc
commit
296bb3632b
@ -31,7 +31,7 @@ const MnemonicDialog = ({
|
|||||||
Your mnemonic provides full access to your wallet and funds. <br />
|
Your mnemonic provides full access to your wallet and funds. <br />
|
||||||
Make sure to note it down.
|
Make sure to note it down.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography component="div" style={{ ...styles.mnomonicDialogWarning }}>
|
<Typography component="div" style={styles.mnemonicDialogWarning}>
|
||||||
Do not share your mnemonic with anyone
|
Do not share your mnemonic with anyone
|
||||||
</Typography>
|
</Typography>
|
||||||
<GridView words={words} />
|
<GridView words={words} />
|
||||||
|
@ -18,6 +18,7 @@ import { useNetworks } from "../context/NetworksContext";
|
|||||||
import ImportWalletDialog from "../components/ImportWalletDialog";
|
import ImportWalletDialog from "../components/ImportWalletDialog";
|
||||||
import { MnemonicDialog } from "../components/MnemonicDialog";
|
import { MnemonicDialog } from "../components/MnemonicDialog";
|
||||||
import { Container } from "../components/Container";
|
import { Container } from "../components/Container";
|
||||||
|
import { IS_IMPORT_WALLET_ENABLED } from "..utils/constants";
|
||||||
|
|
||||||
const HomeScreen = () => {
|
const HomeScreen = () => {
|
||||||
const { setAccounts, setCurrentIndex } = useAccounts();
|
const { setAccounts, setCurrentIndex } = useAccounts();
|
||||||
@ -148,6 +149,7 @@ const HomeScreen = () => {
|
|||||||
isWalletCreating={isWalletCreating}
|
isWalletCreating={isWalletCreating}
|
||||||
createWalletHandler={createWalletHandler}
|
createWalletHandler={createWalletHandler}
|
||||||
/>
|
/>
|
||||||
|
{IS_IMPORT_WALLET_ENABLED && (
|
||||||
<View style={styles.createWalletContainer}>
|
<View style={styles.createWalletContainer}>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
@ -156,6 +158,7 @@ const HomeScreen = () => {
|
|||||||
Import Wallet
|
Import Wallet
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<ImportWalletDialog
|
<ImportWalletDialog
|
||||||
|
@ -102,7 +102,7 @@ const styles = StyleSheet.create({
|
|||||||
mnemonicContainer: {
|
mnemonicContainer: {
|
||||||
backgroundColor: "#18181A",
|
backgroundColor: "#18181A",
|
||||||
},
|
},
|
||||||
mnomonicDialogWarning: {
|
mnemonicDialogWarning: {
|
||||||
color: "#FFA3A8",
|
color: "#FFA3A8",
|
||||||
marginTop: 10,
|
marginTop: 10,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user