diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-15 16:03:08 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-15 16:03:08 +0000 |
commit | 502df521c1187bbd71228ec03fdd9a9ce6f0ead0 (patch) | |
tree | 622ced08d7e83171103525dd89a87d5bf02b64c0 /src/components/dialogs/BirthDateSettings.tsx | |
parent | 884f37c34900559d8e3a881dd8fa2ab781eafbdb (diff) | |
download | voidsky-502df521c1187bbd71228ec03fdd9a9ce6f0ead0.tar.zst |
center date input
Diffstat (limited to 'src/components/dialogs/BirthDateSettings.tsx')
-rw-r--r-- | src/components/dialogs/BirthDateSettings.tsx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/components/dialogs/BirthDateSettings.tsx b/src/components/dialogs/BirthDateSettings.tsx index 47d7faa0c..3ae8fa6cd 100644 --- a/src/components/dialogs/BirthDateSettings.tsx +++ b/src/components/dialogs/BirthDateSettings.tsx @@ -89,18 +89,20 @@ function BirthdayInner({ <Trans>This information is not shared with other users.</Trans> </Text> </View> - <DateInput - handleAsUTC - testID="birthdayInput" - value={date} - onChange={setDate} - buttonType="default-light" - buttonStyle={[a.rounded_sm]} - buttonLabelType="lg" - accessibilityLabel={_(msg`Birthday`)} - accessibilityHint={_(msg`Enter your birth date`)} - accessibilityLabelledBy="birthDate" - /> + <View style={[a.w_full, a.align_center]}> + <DateInput + handleAsUTC + testID="birthdayInput" + value={date} + onChange={setDate} + buttonType="default-light" + buttonStyle={[a.rounded_sm]} + buttonLabelType="lg" + accessibilityLabel={_(msg`Birthday`)} + accessibilityHint={_(msg`Enter your birth date`)} + accessibilityLabelledBy="birthDate" + /> + </View> {isError ? ( <ErrorMessage message={cleanError(error)} style={[a.rounded_sm]} /> ) : undefined} |