formatting;

pull/732/head
Vincent 5 years ago
parent ec5001c4a9
commit 062d70a580

@ -144,7 +144,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
</> </>
); );
} }
public renderPasswordLock() { public renderPasswordLock() {
return ( return (
<div className="session-settings__password-lock"> <div className="session-settings__password-lock">
@ -154,15 +154,17 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
type="password" type="password"
id="password-lock-input" id="password-lock-input"
defaultValue="" defaultValue=""
placeholder={" "} placeholder={' '}
/> />
<div className="spacer-sm" />
{this.state.pwdLockError && ( {this.state.pwdLockError && (
<> <>
<div className="session-label warning"> <div className="session-label warning">
{this.state.pwdLockError} {this.state.pwdLockError}
</div> </div>
<div className="spacer-lg" /> <div className="spacer-sm" />
</> </>
)} )}
@ -184,6 +186,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
this.setState({ this.setState({
pwdLockError: window.i18n('noGivenPassword'), pwdLockError: window.i18n('noGivenPassword'),
}); });
return false; return false;
} }
@ -532,4 +535,4 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
}); });
}); });
} }
} }

Loading…
Cancel
Save