From b6a1045716763a2df409b65f902aa9169e1e0c0d Mon Sep 17 00:00:00 2001 From: Anastasia Poupeney Date: Fri, 15 Jun 2018 12:06:50 +0200 Subject: [PATCH] adding design style to reset modal in settings as well --- src/components/IsUnlocked.js | 14 +++++-------- .../SettingsPage/sections/Profile.js | 20 ++++++++++++++++++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/components/IsUnlocked.js b/src/components/IsUnlocked.js index e8ca9c8a..c0cb10e3 100644 --- a/src/components/IsUnlocked.js +++ b/src/components/IsUnlocked.js @@ -139,10 +139,10 @@ class IsUnlocked extends Component { } } hardResetIconRender = () => ( - - - - ) + + + + ) render() { const { inputValue, incorrectPassword, isHardResetting, isHardResetModalOpened } = this.state const { isLocked, t } = this.props @@ -166,11 +166,7 @@ class IsUnlocked extends Component { type="password" onChange={this.handleChangeInput('password')} value={inputValue.password} - error={ - incorrectPassword && - inputValue.password.length && - t('app:password.errorMessageIncorrectPassword') - } + error={incorrectPassword && t('app:password.errorMessageIncorrectPassword')} />