Skip to content
Permalink
Browse files

shin/ch2320/disable-paper-wallet-creation-for-shelley (#1181)

* Disable paper wallet creation for shelley [ch2320]

* add missing semicolon
  • Loading branch information
sarveshwar-singh authored and SebastienGllmt committed Dec 3, 2019
1 parent b793db3 commit 97326d7c733ee8055c16b176f58c1bb16aec3195
Showing with 9 additions and 6 deletions.
  1. +9 −6 app/components/settings/menu/SettingsMenu.js
@@ -4,6 +4,7 @@ import { observer } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import SettingsMenuItem from './SettingsMenuItem';
import styles from './SettingsMenu.scss';
import environmnent from '../../../environment';
import { ROUTES } from '../../../routes-config';
import type { Theme } from '../../../themes';

@@ -59,12 +60,14 @@ export default class SettingsMenu extends Component<Props> {
className="general"
/>

<SettingsMenuItem
label={intl.formatMessage(messages.paperWallet)}
onClick={() => onItemClick(ROUTES.SETTINGS.PAPER_WALLET)}
active={isActiveItem(ROUTES.SETTINGS.PAPER_WALLET)}
className="paperWallet"
/>
{!environmnent.isShelley() &&
<SettingsMenuItem
label={intl.formatMessage(messages.paperWallet)}
onClick={() => onItemClick(ROUTES.SETTINGS.PAPER_WALLET)}
active={isActiveItem(ROUTES.SETTINGS.PAPER_WALLET)}
className="paperWallet"
/>
}

<SettingsMenuItem
label={intl.formatMessage(messages.wallet)}

0 comments on commit 97326d7

Please sign in to comment.
You can’t perform that action at this time.