center date input

zio/stable
Samuel Newman 2024-03-15 16:03:08 +00:00
parent 884f37c349
commit 502df521c1
1 changed files with 14 additions and 12 deletions

View File

@ -89,18 +89,20 @@ function BirthdayInner({
<Trans>This information is not shared with other users.</Trans> <Trans>This information is not shared with other users.</Trans>
</Text> </Text>
</View> </View>
<DateInput <View style={[a.w_full, a.align_center]}>
handleAsUTC <DateInput
testID="birthdayInput" handleAsUTC
value={date} testID="birthdayInput"
onChange={setDate} value={date}
buttonType="default-light" onChange={setDate}
buttonStyle={[a.rounded_sm]} buttonType="default-light"
buttonLabelType="lg" buttonStyle={[a.rounded_sm]}
accessibilityLabel={_(msg`Birthday`)} buttonLabelType="lg"
accessibilityHint={_(msg`Enter your birth date`)} accessibilityLabel={_(msg`Birthday`)}
accessibilityLabelledBy="birthDate" accessibilityHint={_(msg`Enter your birth date`)}
/> accessibilityLabelledBy="birthDate"
/>
</View>
{isError ? ( {isError ? (
<ErrorMessage message={cleanError(error)} style={[a.rounded_sm]} /> <ErrorMessage message={cleanError(error)} style={[a.rounded_sm]} />
) : undefined} ) : undefined}