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 />
|
||||
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} />
|
||||
|
@ -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
|
||||
|
@ -102,7 +102,7 @@ const styles = StyleSheet.create({
|
||||
mnemonicContainer: {
|
||||
backgroundColor: "#18181A",
|
||||
},
|
||||
mnomonicDialogWarning: {
|
||||
mnemonicDialogWarning: {
|
||||
color: "#FFA3A8",
|
||||
marginTop: 10,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user