From 5a278555ad36b52ca78ec5403589d213a953652f Mon Sep 17 00:00:00 2001 From: yasharAyari Date: Wed, 28 Mar 2018 12:34:22 +0200 Subject: [PATCH 1/2] Enable second passphrase item in setting --- src/components/mainMenu/mainMenu.js | 2 +- src/components/setting/setting.js | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/mainMenu/mainMenu.js b/src/components/mainMenu/mainMenu.js index 8753919e1a..43ecba42bd 100644 --- a/src/components/mainMenu/mainMenu.js +++ b/src/components/mainMenu/mainMenu.js @@ -153,7 +153,7 @@ class MainMenu extends React.Component { />)} - + diff --git a/src/components/setting/setting.js b/src/components/setting/setting.js index 9739a4b755..d94c0b6a70 100644 --- a/src/components/setting/setting.js +++ b/src/components/setting/setting.js @@ -1,13 +1,13 @@ import React from 'react'; -// import { Link } from 'react-router-dom'; +import { Link } from 'react-router-dom'; import ReactSwipe from 'react-swipe'; import styles from './setting.css'; import Checkbox from '../toolbox/sliderCheckbox'; import i18n from '../../i18n'; import accountConfig from '../../constants/account'; // TODO: will be re-enabled when the functionality is updated -// import routes from '../../constants/routes'; -// import { FontIcon } from '../fontIcon'; +import routes from '../../constants/routes'; +import { FontIcon } from '../fontIcon'; // import languageSwitcherTheme from './languageSwitcher.css'; class Setting extends React.Component { @@ -45,7 +45,7 @@ class Setting extends React.Component { render() { this.language = (i18n.language === 'de'); const showSetting = this.props.showSetting ? styles.active : ''; - const { t, settings, settingsUpdated } = this.props; + const { t, settings, settingsUpdated, hasSecondPassphrase, toggleMenu } = this.props; return