Skip to content

Commit

Permalink
Merge pull request #654 from Psychedelic/fix/disable-import-wallet-fi…
Browse files Browse the repository at this point in the history
…refox

Fix/disable import wallet firefox
  • Loading branch information
tomiir authored Oct 26, 2022
2 parents 02fccdc + ebc6096 commit 45ee1bd
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions source/components/Profile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -204,6 +206,7 @@ const Profile = ({ disableProfile }) => {
setOpen(false);
};


return (
<>
<Dialog
Expand Down Expand Up @@ -330,15 +333,17 @@ const Profile = ({ disableProfile }) => {
onClick={handleOpenCreateAccount}
data-testid="create-account-button"
/>
<MenuItem
size="small"
key="createAccount"
name={t('profile.importWallet')}
alignLeft
logo={LinkEmoji}
onClick={handleOpenImportWallet}
data-testid="create-account-button"
/>
{ IMPORT_WALLET_ENABLED && (
<MenuItem
size="small"
key="createAccount"
name={t('profile.importWallet')}
alignLeft
logo={LinkEmoji}
onClick={handleOpenImportWallet}
data-testid="create-account-button"
/>
)}
<Divider style={{ margin: '6px 0' }} />
{
menuItems.map((item) => (
Expand Down

0 comments on commit 45ee1bd

Please sign in to comment.