From 296bb3632be6a03b75268f0827f6b2339bdc5dda Mon Sep 17 00:00:00 2001 From: Cody Bender Date: Sat, 10 Aug 2024 17:49:55 -0400 Subject: [PATCH] chore: rename style and add back enabled check --- src/components/MnemonicDialog.tsx | 2 +- src/screens/HomeScreen.tsx | 19 +++++++++++-------- src/styles/stylesheet.js | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/components/MnemonicDialog.tsx b/src/components/MnemonicDialog.tsx index 29cade5..6086dc6 100644 --- a/src/components/MnemonicDialog.tsx +++ b/src/components/MnemonicDialog.tsx @@ -31,7 +31,7 @@ const MnemonicDialog = ({ Your mnemonic provides full access to your wallet and funds.
Make sure to note it down. - + Do not share your mnemonic with anyone diff --git a/src/screens/HomeScreen.tsx b/src/screens/HomeScreen.tsx index 79e8700..7d35673 100644 --- a/src/screens/HomeScreen.tsx +++ b/src/screens/HomeScreen.tsx @@ -18,6 +18,7 @@ import { useNetworks } from "../context/NetworksContext"; import ImportWalletDialog from "../components/ImportWalletDialog"; import { MnemonicDialog } from "../components/MnemonicDialog"; import { Container } from "../components/Container"; +import { IS_IMPORT_WALLET_ENABLED } from "..utils/constants"; const HomeScreen = () => { const { setAccounts, setCurrentIndex } = useAccounts(); @@ -148,14 +149,16 @@ const HomeScreen = () => { isWalletCreating={isWalletCreating} createWalletHandler={createWalletHandler} /> - - - + {IS_IMPORT_WALLET_ENABLED && ( + + + + )} )}