pull/1034/head
Vincent 5 years ago
parent a75e0a9429
commit 86bcee58ce

@ -1,7 +1,8 @@
.password { .password {
height: 100vh; height: 100vh;
.clear-data, .password-prompt { .clear-data,
.password-prompt {
&-wrapper { &-wrapper {
display: flex; display: flex;
justify-content: center; justify-content: center;

@ -148,9 +148,7 @@ export class DevicePairingDialog extends React.Component<Props, State> {
<div className="session-modal__centered"> <div className="session-modal__centered">
{this.renderErrors()} {this.renderErrors()}
<h4>{window.i18n('waitingForDeviceToRegister')}</h4> <h4>{window.i18n('waitingForDeviceToRegister')}</h4>
<small className="subtle"> <small className="subtle">{window.i18n('pairNewDevicePrompt')}</small>
{window.i18n('pairNewDevicePrompt')}
</small>
<div className="spacer-lg" /> <div className="spacer-lg" />
<div className="qr-image"> <div className="qr-image">

@ -120,7 +120,7 @@ export class UpdateGroupMembersDialog extends React.Component<Props, State> {
<small className="create-group-dialog__member-count"> <small className="create-group-dialog__member-count">
{`${checkMarkedCount} members`} {`${checkMarkedCount} members`}
</small> </small>
<hr className="subtle"/> <hr className="subtle" />
</> </>
)} )}
@ -135,7 +135,7 @@ export class UpdateGroupMembersDialog extends React.Component<Props, State> {
)})`}</p> )})`}</p>
<div className="spacer-lg" /> <div className="spacer-lg" />
<div className="session-modal__button-group"> <div className="session-modal__button-group">
<SessionButton text={okText} onClick={this.onClickOK} /> <SessionButton text={okText} onClick={this.onClickOK} />

@ -16,7 +16,7 @@ interface State {
export class SessionPasswordPrompt extends React.PureComponent<{}, State> { export class SessionPasswordPrompt extends React.PureComponent<{}, State> {
private readonly inputRef: React.RefObject<HTMLInputElement>; private readonly inputRef: React.RefObject<HTMLInputElement>;
constructor(props: any) { constructor(props: any) {
super(props); super(props);
@ -162,7 +162,9 @@ export class SessionPasswordPrompt extends React.PureComponent<{}, State> {
} }
private async initLogin() { private async initLogin() {
const passPhrase = String((this.inputRef.current as HTMLInputElement).value); const passPhrase = String(
(this.inputRef.current as HTMLInputElement).value
);
await this.onLogin(passPhrase); await this.onLogin(passPhrase);
} }

Loading…
Cancel
Save