diff --git a/js/src/modals/CreateAccount/NewAccount/newAccount.js b/js/src/modals/CreateAccount/NewAccount/newAccount.js index a1a60fb775d..cbf7d158716 100644 --- a/js/src/modals/CreateAccount/NewAccount/newAccount.js +++ b/js/src/modals/CreateAccount/NewAccount/newAccount.js @@ -19,7 +19,7 @@ import { IconButton } from 'material-ui'; import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'; import ActionAutorenew from 'material-ui/svg-icons/action/autorenew'; -import { Form, Input, IdentityIcon, PasswordStrength } from '~/ui'; +import { Form, Input, IdentityIcon } from '~/ui'; import ERRORS from '../errors'; @@ -90,7 +90,6 @@ export default class CreateAccount extends Component { onChange={ this.onEditPassword2 } /> - { this.renderIdentitySelector() } { this.renderIdentities() } diff --git a/js/src/modals/CreateAccount/RawKey/rawKey.js b/js/src/modals/CreateAccount/RawKey/rawKey.js index 9ac871baf6e..d0b3a4c7118 100644 --- a/js/src/modals/CreateAccount/RawKey/rawKey.js +++ b/js/src/modals/CreateAccount/RawKey/rawKey.js @@ -16,7 +16,7 @@ import React, { Component, PropTypes } from 'react'; -import { Form, Input, PasswordStrength } from '~/ui'; +import { Form, Input } from '~/ui'; import styles from '../createAccount.css'; @@ -92,7 +92,6 @@ export default class RawKey extends Component { onChange={ this.onEditPassword2 } /> - ); } diff --git a/js/src/modals/CreateAccount/RecoveryPhrase/recoveryPhrase.js b/js/src/modals/CreateAccount/RecoveryPhrase/recoveryPhrase.js index bf3b0fdf804..9d76cebfaaf 100644 --- a/js/src/modals/CreateAccount/RecoveryPhrase/recoveryPhrase.js +++ b/js/src/modals/CreateAccount/RecoveryPhrase/recoveryPhrase.js @@ -17,7 +17,7 @@ import React, { Component, PropTypes } from 'react'; import { Checkbox } from 'material-ui'; -import { Form, Input, PasswordStrength } from '~/ui'; +import { Form, Input } from '~/ui'; import styles from '../createAccount.css'; @@ -89,7 +89,6 @@ export default class RecoveryPhrase extends Component { onChange={ this.onEditPassword2 } /> - @@ -96,14 +95,12 @@ export default class PasswordStrength extends Component { // Note that the suggestions are in english, thus it wouldn't // make sense to add translations to surrounding words renderFeedback (feedback = {}) { - const { crack_times_display } = this.state.strength; const { suggestions = [] } = feedback; return (

- It would take { crack_times_display.offline_slow_hashing_1e4_per_second } to crack this password. -  { suggestions.join(' ') } + { suggestions.join(' ') }

); @@ -122,7 +119,6 @@ export default class PasswordStrength extends Component { return 'orange'; default: - case 0: return 'red'; } } diff --git a/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js b/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js index f00e27bdb37..ac616a87b9b 100644 --- a/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js +++ b/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js @@ -33,6 +33,9 @@ describe('ui/Form/PasswordStrength', () => { describe('rendering', () => { it('renders', () => { expect(render({ input: INPUT_A })).to.be.ok; + }); + + it('renders a linear progress', () => { expect(render({ input: INPUT_A }).find('LinearProgress')).to.be.ok; });