Date input improvements (#7639)
* add max date, use modern field for birthday input * rm legacy date input * handle simplifying to simpleDateString internally * update jsdoc
This commit is contained in:
@@ -206,7 +206,7 @@ export function StepInfo({
|
||||
</DateField.LabelText>
|
||||
<DateField.DateField
|
||||
testID="date"
|
||||
value={DateField.utils.toSimpleDateString(state.dateOfBirth)}
|
||||
value={state.dateOfBirth}
|
||||
onChangeDate={date => {
|
||||
dispatch({
|
||||
type: 'setDateOfBirth',
|
||||
@@ -215,6 +215,7 @@ export function StepInfo({
|
||||
}}
|
||||
label={_(msg`Date of birth`)}
|
||||
accessibilityHint={_(msg`Select your date of birth`)}
|
||||
maximumDate={new Date()}
|
||||
/>
|
||||
</View>
|
||||
<Policies
|
||||
|
||||
Reference in New Issue
Block a user