diff options
author | Sriram Viswanathan <sriramv@thoughtworks.com> | 2017-04-04 18:36:14 -0300 |
---|---|---|
committer | Sriram Viswanathan <sriramv@thoughtworks.com> | 2017-04-04 18:36:14 -0300 |
commit | d8ade045a17be8de98ea2a501dbdb7ba166de094 (patch) | |
tree | 76049031eb073a8a5a3c28ac75b6bd31654d12da /web-ui | |
parent | 3b3f28217a880afd8ec6d45ff57ccd41784847b3 (diff) |
[#938] Fixes lint errors
with @anikarni
Diffstat (limited to 'web-ui')
3 files changed, 15 insertions, 7 deletions
diff --git a/web-ui/src/account_recovery/backup_account_step/backup_account_step.js b/web-ui/src/account_recovery/backup_account_step/backup_account_step.js index f2498a8a..e0c31d88 100644 --- a/web-ui/src/account_recovery/backup_account_step/backup_account_step.js +++ b/web-ui/src/account_recovery/backup_account_step/backup_account_step.js @@ -14,8 +14,8 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. */ -import React from "react"; -import {translate} from "react-i18next"; +import React from 'react'; +import { translate } from 'react-i18next'; import SubmitButton from 'src/common/submit_button/submit_button'; export const BackupAccountStep = ({ t }) => ( diff --git a/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js b/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js index 561079c9..1d08670d 100644 --- a/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js +++ b/web-ui/src/account_recovery/backup_account_step/backup_account_step.spec.js @@ -1,8 +1,8 @@ import { shallow } from 'enzyme'; import expect from 'expect'; import React from 'react'; -import { BackupAccountStep } from './backup_account_step'; import SubmitButton from 'src/common/submit_button/submit_button'; +import { BackupAccountStep } from './backup_account_step'; describe('BackupAccountStep', () => { let backupAccountStep; diff --git a/web-ui/src/account_recovery/page.js b/web-ui/src/account_recovery/page.js index 89441d26..94927a16 100644 --- a/web-ui/src/account_recovery/page.js +++ b/web-ui/src/account_recovery/page.js @@ -53,10 +53,18 @@ export class Page extends React.Component { steps = () => ({ 0: <AdminRecoveryCodeForm next={this.nextStep} />, - 1: (<UserRecoveryCodeForm - previous={this.previousStep} next={this.nextStep} saveCode={this.saveUserCode} - />), - 2: <NewPasswordForm previous={this.previousStep} userCode={this.state.userCode} next={this.nextStep} />, + 1: + (<UserRecoveryCodeForm + previous={this.previousStep} + next={this.nextStep} + saveCode={this.saveUserCode} + />), + 2: + (<NewPasswordForm + previous={this.previousStep} + userCode={this.state.userCode} + next={this.nextStep} + />), 3: <BackupAccountStep /> }) |