From 9e2e2a794d9eb4d14ad519cb26c7d86b0e6836cc Mon Sep 17 00:00:00 2001 From: Juan Manuel <44899916+angarita-dev@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:49:35 -0500 Subject: [PATCH] Conditional render for import wallet in firefox --- source/components/Profile/index.jsx | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/source/components/Profile/index.jsx b/source/components/Profile/index.jsx index a124e811..fe68da4e 100644 --- a/source/components/Profile/index.jsx +++ b/source/components/Profile/index.jsx @@ -42,6 +42,8 @@ import { AccountItem } from './components'; import UserIcon from '../UserIcon'; import useStyles from './styles'; +const IMPORT_WALLET_ENABLED = process.env.TARGET_BROWSER !== 'firefox'; + const Profile = ({ disableProfile }) => { const classes = useStyles(); const { t } = useTranslation(); @@ -205,6 +207,7 @@ const Profile = ({ disableProfile }) => { navigator.navigate('home'); }; + return ( <> { onClick={handleOpenCreateAccount} data-testid="create-account-button" /> - + { IMPORT_WALLET_ENABLED && ( + + )} { menuItems.map((item) => (