Sets default button type to small and moves action names to config file

This commit is contained in:
mashazyu
2020-04-20 17:02:11 +02:00
committed by Sofiya Tepikin
parent 45cff710c8
commit bba25aeaac
6 changed files with 20 additions and 11 deletions
@@ -62,7 +62,7 @@ export default class ConfirmWithPassword extends Component {
render() {
const { password } = this.state
const labels = settings.passwordSettings
const isCTA = password !== null
const isPassword = password !== null
return (
<React.Fragment>
@@ -72,10 +72,10 @@ export default class ConfirmWithPassword extends Component {
value={password}
/>
<View style={styles.container}>
<Button isSmall onPress={this.props.onCancel}>
<Button onPress={this.props.onCancel}>
{shared.cancel}
</Button>
<Button isCTA={isCTA} isSmall onPress={this.initPasswordCheck}>
<Button isCTA={isPassword} onPress={this.initPasswordCheck}>
{shared.confirmToProceed}
</Button>
</View>