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,14 +149,16 @@ const HomeScreen = () => {
|
|||||||
isWalletCreating={isWalletCreating}
|
isWalletCreating={isWalletCreating}
|
||||||
createWalletHandler={createWalletHandler}
|
createWalletHandler={createWalletHandler}
|
||||||
/>
|
/>
|
||||||
<View style={styles.createWalletContainer}>
|
{IS_IMPORT_WALLET_ENABLED && (
|
||||||
<Button
|
<View style={styles.createWalletContainer}>
|
||||||
variant="contained"
|
<Button
|
||||||
onClick={() => setImportWalletDialog(true)}
|
variant="contained"
|
||||||
>
|
onClick={() => setImportWalletDialog(true)}
|
||||||
Import Wallet
|
>
|
||||||
</Button>
|
Import Wallet
|
||||||
</View>
|
</Button>
|
||||||
|
</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