Styles the buttons in password confirmation

This commit is contained in:
Sofiya Tepikin
2019-01-09 23:33:51 +01:00
parent 3babba0d92
commit 714d9fd681
3 changed files with 38 additions and 17 deletions
@@ -64,7 +64,6 @@ export default class ConfirmWithPassword extends Component {
}
render() {
const { password } = this.state
const labels = settings.passwordSettings
@@ -75,17 +74,27 @@ export default class ConfirmWithPassword extends Component {
value={password}
onChangeText={this.handlePasswordInput}
/>
<SettingsButton
onPress={this.initPasswordCheck}
disabled={!password}
>
{shared.confirmToProceed}
</SettingsButton>
<SettingsButton
onPress={this.props.onCancel}
>
{shared.cancel}
</SettingsButton>
<View style={{
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between'
}}>
<SettingsButton
onPress={this.props.onCancel}
secondary
>
{shared.cancel}
</SettingsButton>
<SettingsButton
onPress={this.initPasswordCheck}
disabled={!password}
style={{
flex: 1,
}}
>
{shared.confirmToProceed}
</SettingsButton>
</View>
</View>
)