Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions src/pages/signin/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,21 @@ class LoginForm extends React.Component {
{this.props.account.success}
</Text>
)}
<View style={[styles.mt5]}>
<FormAlertWithSubmitButton
buttonText={this.props.translate('common.continue')}
isLoading={this.props.account.isLoading}
onSubmit={this.validateAndSubmitForm}
message={error}
isAlertVisible={!_.isEmpty(error)}
containerStyles={[styles.mh0]}
/>
</View>
{ // We need to unmount the submit button when the component is not visible so that the Enter button
// key handler gets unsubscribed and does not conflict with the Password Form
this.props.isVisible && (
<View style={[styles.mt5]}>
<FormAlertWithSubmitButton
buttonText={this.props.translate('common.continue')}
isLoading={this.props.account.isLoading}
onSubmit={this.validateAndSubmitForm}
message={error}
isAlertVisible={!_.isEmpty(error)}
containerStyles={[styles.mh0]}
/>
</View>
)
}
<OfflineIndicator containerStyles={[styles.mv1]} />
</>
);
Expand Down