diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-02-03 12:27:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-03 20:27:58 +0000 |
commit | 23e62b18de9537b50c8b1df2b4744adc030501d0 (patch) | |
tree | 557037a964f2a8f7a3583ae84fc3b67b498c1ed2 /src/screens/Signup/StepInfo | |
parent | 25991af7224cd76a8722f0579c00b73a211a84cc (diff) | |
download | voidsky-23e62b18de9537b50c8b1df2b4744adc030501d0.tar.zst |
Date input improvements (#7639)
* add max date, use modern field for birthday input * rm legacy date input * handle simplifying to simpleDateString internally * update jsdoc
Diffstat (limited to 'src/screens/Signup/StepInfo')
-rw-r--r-- | src/screens/Signup/StepInfo/index.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screens/Signup/StepInfo/index.tsx b/src/screens/Signup/StepInfo/index.tsx index fa0c7c8cf..4ad899864 100644 --- a/src/screens/Signup/StepInfo/index.tsx +++ b/src/screens/Signup/StepInfo/index.tsx @@ -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 |