Prettify files before other changes

Prettify
This commit is contained in:
Sofiya Tepikin
2022-08-10 13:54:22 +02:00
parent 04bd981871
commit 0ec23219bf
5 changed files with 35 additions and 51 deletions
+7 -10
View File
@@ -12,7 +12,7 @@ import settings from '../../../i18n/en/settings'
export default class ChangePassword extends Component {
static propTypes = {
onStartChange: PropTypes.func,
onCancelChange: PropTypes.func
onCancelChange: PropTypes.func,
}
constructor() {
@@ -21,7 +21,7 @@ export default class ChangePassword extends Component {
this.state = {
currentPassword: null,
enteringCurrentPassword: false,
enteringNewPassword: false
enteringNewPassword: false,
}
}
@@ -41,7 +41,7 @@ export default class ChangePassword extends Component {
this.setState({
currentPassword: null,
enteringNewPassword: true,
enteringCurrentPassword: false
enteringCurrentPassword: false,
})
}
@@ -49,17 +49,14 @@ export default class ChangePassword extends Component {
this.setState({
currentPassword: null,
enteringNewPassword: false,
enteringCurrentPassword: false
enteringCurrentPassword: false,
})
this.props.onCancelChange()
}
render() {
const {
enteringCurrentPassword,
enteringNewPassword,
currentPassword
} = this.state
const { enteringCurrentPassword, enteringNewPassword, currentPassword } =
this.state
const labels = settings.passwordSettings
const isPasswordSet = currentPassword !== null
@@ -86,4 +83,4 @@ export default class ChangePassword extends Component {
</Button>
)
}
}
}