Skip to content

Commit

Permalink
#000 - isChecked instead of checked
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Feb 6, 2023
1 parent be39122 commit 978ba0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/openchs-android/src/views/SetPasswordView.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class SetPasswordView extends AbstractComponent {
return {showPassword: !oldState.showPassword}
})}>
<View style={{flexDirection: 'row', alignItems: 'center'}}>
<CheckBox checked={this.state.showPassword}/>
<CheckBox isChecked={this.state.showPassword}/>
<Text style={[Styles.formLabel, {paddingLeft: 12}]}>{"Show password"}</Text>
</View>
</TouchableNativeFeedback>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class DateOfBirthAndAgeFormElement extends AbstractComponent {
color: AbstractDataEntryState.hasValidationError(this.props.state, Individual.validationKeys.DOB) ? Colors.ValidationError : Colors.DarkPrimaryColor
}]}>{this.dateDisplay(this.props.state.individual.dateOfBirth)}</Text>
<View style={{flexDirection: 'column-reverse', justifyContent: 'center', marginRight: 4}}>
<CheckBox checked={this.props.state.individual.dateOfBirthVerified}
<CheckBox isChecked={this.props.state.individual.dateOfBirthVerified}
accessible={true}
accessibilityLabel={"Is date of birth verified?"}
onPress={() => this.dispatchAction(Actions.REGISTRATION_ENTER_DOB_VERIFIED, {value: !this.props.state.individual.dateOfBirthVerified})}/>
Expand Down

0 comments on commit 978ba0b

Please sign in to comment.