about summary refs log tree commit diff
path: root/src/screens/Signup/StepInfo
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-02-03 12:27:58 -0800
committerGitHub <noreply@github.com>2025-02-03 20:27:58 +0000
commit23e62b18de9537b50c8b1df2b4744adc030501d0 (patch)
tree557037a964f2a8f7a3583ae84fc3b67b498c1ed2 /src/screens/Signup/StepInfo
parent25991af7224cd76a8722f0579c00b73a211a84cc (diff)
downloadvoidsky-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.tsx3
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