diff --git a/lib/types/account-types.js b/lib/types/account-types.js --- a/lib/types/account-types.js +++ b/lib/types/account-types.js @@ -39,6 +39,7 @@ ...LogInExtraInfo, +username: string, +password: string, + +primaryIdentityPublicKey?: string, }; type DeviceTokenUpdateRequest = { diff --git a/native/account/log-in-panel.react.js b/native/account/log-in-panel.react.js --- a/native/account/log-in-panel.react.js +++ b/native/account/log-in-panel.react.js @@ -152,6 +152,10 @@ text="LOG IN" loadingStatus={this.props.loadingStatus} onSubmit={this.onSubmit} + disabled={ + this.props.primaryIdentityPublicKey === undefined || + this.props.primaryIdentityPublicKey === null + } /> @@ -389,7 +393,7 @@ return ( void, + +disabled?: boolean, }; function PanelButton(props: ButtonProps): React.Node { let buttonIcon; @@ -42,7 +43,7 @@