chore: rename style and add back enabled check

This commit is contained in:
Cody Bender 2024-08-10 17:49:55 -04:00
parent 360f3b76bc
commit 296bb3632b
3 changed files with 13 additions and 10 deletions

View File

@ -31,7 +31,7 @@ const MnemonicDialog = ({
Your mnemonic provides full access to your wallet and funds. <br />
Make sure to note it down.
</Typography>
<Typography component="div" style={{ ...styles.mnomonicDialogWarning }}>
<Typography component="div" style={styles.mnemonicDialogWarning}>
Do not share your mnemonic with anyone
</Typography>
<GridView words={words} />

View File

@ -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}
/>
<View style={styles.createWalletContainer}>
<Button
variant="contained"
onClick={() => setImportWalletDialog(true)}
>
Import Wallet
</Button>
</View>
{IS_IMPORT_WALLET_ENABLED && (
<View style={styles.createWalletContainer}>
<Button
variant="contained"
onClick={() => setImportWalletDialog(true)}
>
Import Wallet
</Button>
</View>
)}
</>
)}
<ImportWalletDialog

View File

@ -102,7 +102,7 @@ const styles = StyleSheet.create({
mnemonicContainer: {
backgroundColor: "#18181A",
},
mnomonicDialogWarning: {
mnemonicDialogWarning: {
color: "#FFA3A8",
marginTop: 10,
},