Skip to content

Commit

Permalink
fixup! Restyle PasswordReminderModal
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-edge committed Jan 18, 2024
1 parent 19d42e7 commit 4f746c6
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/components/modals/PasswordReminderModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EdgeAccount } from 'edge-core-js'
import * as React from 'react'
import { Platform, ScrollView, View } from 'react-native'
import { AirshipBridge } from 'react-native-airship'

import { lstrings } from '../../locales/strings'
Expand Down Expand Up @@ -75,16 +74,15 @@ export class PasswordReminderModalComponent extends React.PureComponent<Props, S
handleChangeText = (password: string) => this.setState({ password })

render() {
const { bridge, theme } = this.props
const { bridge } = this.props
const { errorMessage, password, checkingPassword } = this.state

return (
<ModalUi4 bridge={bridge} title={lstrings.password_reminder_remember_your_password} onCancel={this.handleCancel}>
<ScrollView style={{ maxHeight: theme.rem(9), marginTop: theme.rem(1) }}>
<ModalMessage>{lstrings.password_reminder_you_will_need_your_password}</ModalMessage>
<ModalMessage>{lstrings.password_reminder_enter_password_below}</ModalMessage>
</ScrollView>
<ModalMessage>{lstrings.password_reminder_you_will_need_your_password}</ModalMessage>
<ModalMessage>{lstrings.password_reminder_enter_password_below}</ModalMessage>
<FilledTextInput
top={0.5}
bottom={2}
horizontal={0.5}
autoFocus={false}
Expand All @@ -95,10 +93,6 @@ export class PasswordReminderModalComponent extends React.PureComponent<Props, S
secureTextEntry
value={password}
/>
{
// Hack around the Android keyboard glitch:
Platform.OS === 'android' ? <View style={{ flex: 1 }} /> : null
}
<ButtonsViewUi4
primary={{ label: lstrings.password_reminder_check_password, onPress: this.handleSubmit, disabled: password.length === 0 }}
secondary={{ label: lstrings.password_reminder_forgot_password, onPress: this.handleRequestChangePassword, disabled: checkingPassword }}
Expand Down

0 comments on commit 4f746c6

Please sign in to comment.