Align on birthdate
This commit is contained in:
@@ -40,11 +40,11 @@ export function BirthDateSettingsDialog({
|
|||||||
<Dialog.Handle />
|
<Dialog.Handle />
|
||||||
{isBirthdateUpdateAllowed ? (
|
{isBirthdateUpdateAllowed ? (
|
||||||
<Dialog.ScrollableInner
|
<Dialog.ScrollableInner
|
||||||
label={_(msg`My Birthday`)}
|
label={_(msg`My Birthdate`)}
|
||||||
style={web({maxWidth: 400})}>
|
style={web({maxWidth: 400})}>
|
||||||
<View style={[a.gap_md]}>
|
<View style={[a.gap_md]}>
|
||||||
<Text style={[a.text_xl, a.font_semi_bold]}>
|
<Text style={[a.text_xl, a.font_semi_bold]}>
|
||||||
<Trans>My Birthday</Trans>
|
<Trans>My Birthdate</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
style={[a.text_md, a.leading_snug, t.atoms.text_contrast_medium]}>
|
style={[a.text_md, a.leading_snug, t.atoms.text_contrast_medium]}>
|
||||||
@@ -60,7 +60,7 @@ export function BirthDateSettingsDialog({
|
|||||||
message={
|
message={
|
||||||
error?.toString() ||
|
error?.toString() ||
|
||||||
_(
|
_(
|
||||||
msg`We were unable to load your birth date preferences. Please try again.`,
|
msg`We were unable to load your birthdate preferences. Please try again.`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
style={[a.rounded_sm]}
|
style={[a.rounded_sm]}
|
||||||
@@ -74,7 +74,7 @@ export function BirthDateSettingsDialog({
|
|||||||
</Dialog.ScrollableInner>
|
</Dialog.ScrollableInner>
|
||||||
) : (
|
) : (
|
||||||
<Dialog.ScrollableInner
|
<Dialog.ScrollableInner
|
||||||
label={_(msg`You recently changed your birthday`)}
|
label={_(msg`You recently changed your birthdate`)}
|
||||||
style={web({maxWidth: 400})}>
|
style={web({maxWidth: 400})}>
|
||||||
<View style={[a.gap_sm]}>
|
<View style={[a.gap_sm]}>
|
||||||
<Text
|
<Text
|
||||||
@@ -84,12 +84,12 @@ export function BirthDateSettingsDialog({
|
|||||||
a.leading_snug,
|
a.leading_snug,
|
||||||
{paddingRight: 32},
|
{paddingRight: 32},
|
||||||
]}>
|
]}>
|
||||||
<Trans>You recently changed your birthday</Trans>
|
<Trans>You recently changed your birthdate</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
style={[a.text_md, a.leading_snug, t.atoms.text_contrast_medium]}>
|
style={[a.text_md, a.leading_snug, t.atoms.text_contrast_medium]}>
|
||||||
<Trans>
|
<Trans>
|
||||||
There is a limit to how often you can change your birthday. You
|
There is a limit to how often you can change your birthdate. You
|
||||||
may need to wait a day or two before updating it again.
|
may need to wait a day or two before updating it again.
|
||||||
</Trans>
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
@@ -144,8 +144,8 @@ function BirthdayInner({
|
|||||||
testID="birthdayInput"
|
testID="birthdayInput"
|
||||||
value={date}
|
value={date}
|
||||||
onChangeDate={newDate => setDate(new Date(newDate))}
|
onChangeDate={newDate => setDate(new Date(newDate))}
|
||||||
label={_(msg`Birthday`)}
|
label={_(msg`Birthdate`)}
|
||||||
accessibilityHint={_(msg`Enter your birth date`)}
|
accessibilityHint={_(msg`Enter your birthdate`)}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ function BirthdayInner({
|
|||||||
|
|
||||||
<View style={isWeb && [a.flex_row, a.justify_end]}>
|
<View style={isWeb && [a.flex_row, a.justify_end]}>
|
||||||
<Button
|
<Button
|
||||||
label={hasChanged ? _(msg`Save birthday`) : _(msg`Done`)}
|
label={hasChanged ? _(msg`Save birthdate`) : _(msg`Done`)}
|
||||||
size="large"
|
size="large"
|
||||||
onPress={onSave}
|
onPress={onSave}
|
||||||
variant="solid"
|
variant="solid"
|
||||||
|
|||||||
Reference in New Issue
Block a user