Adds disabled prop to Button, style change name in AppSwitch component

This commit is contained in:
mashazyu
2020-04-20 17:17:31 +02:00
committed by Sofiya Tepikin
parent 61ca71fd1f
commit 7afaa1e156
3 changed files with 14 additions and 5 deletions
@@ -75,7 +75,11 @@ export default class ConfirmWithPassword extends Component {
<Button onPress={this.props.onCancel}>
{shared.cancel}
</Button>
<Button isCTA={isPassword} onPress={this.initPasswordCheck}>
<Button
disabled={!isPassword}
isCTA={isPassword}
onPress={this.initPasswordCheck}
>
{shared.confirmToProceed}
</Button>
</View>