From 907790d83049aeb8bb284d65aad6015c7f1d76a2 Mon Sep 17 00:00:00 2001 From: Gina Contrino Date: Fri, 6 Apr 2018 11:43:23 +0200 Subject: [PATCH] Make back button in second passphrase registration work --- src/components/secondPassphrase/secondPassphrase.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/secondPassphrase/secondPassphrase.js b/src/components/secondPassphrase/secondPassphrase.js index 8111fb3b96..aafab30a39 100644 --- a/src/components/secondPassphrase/secondPassphrase.js +++ b/src/components/secondPassphrase/secondPassphrase.js @@ -21,6 +21,11 @@ class SecondPassphrase extends React.Component { .push(`${routes.main.path}${routes.dashboard.path}`); } } + + backToPreviousPage() { + this.props.history.goBack(); + } + render() { const { account, peers, registerSecondPassphrase, t } = this.props; const header = t('Secure the use of your Lisk ID with a second passphrase.'); @@ -38,7 +43,9 @@ class SecondPassphrase extends React.Component { + backButtonLabel={t('Back')} + prevPage={this.backToPreviousPage.bind(this)} + >