From 1ec36fb45d48cadd98ec7188414fa6de4d9455ad Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 28 Mar 2017 15:33:55 -0300 Subject: [#932] Adds back link to account recovery steps --- web-ui/src/account_recovery/page.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'web-ui/src/account_recovery/page.js') diff --git a/web-ui/src/account_recovery/page.js b/web-ui/src/account_recovery/page.js index f867fcd5..3043a38b 100644 --- a/web-ui/src/account_recovery/page.js +++ b/web-ui/src/account_recovery/page.js @@ -40,10 +40,14 @@ export class Page extends React.Component { this.setState({ step: this.state.step + 1 }); } + previousStep = () => { + this.setState({ step: this.state.step - 1 }); + } + steps = { 0: , - 1: , - 2: + 1: , + 2: } mainContent = () => this.steps[this.state.step]; -- cgit v1.2.3