diff options
author | dan <dan.abramov@gmail.com> | 2024-04-04 21:34:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:34:55 +0100 |
commit | 3915bb43169ae501d81571c5e1efa12cf0e24dbb (patch) | |
tree | be2f7bed7c842be71922f2793b4b4a20cd6fbc24 /src/screens/Signup/StepInfo/index.tsx | |
parent | c190fd58ec82b36ea8124902cad34acc4a5b5ac0 (diff) | |
download | voidsky-3915bb43169ae501d81571c5e1efa12cf0e24dbb.tar.zst |
Enforce Text suffix for Text-rendering components (#3407)
* Rm unused * Add Text suffix to Title/Description * Add Text suffix to text components * Add Text suffix to props * Validate Text components returns
Diffstat (limited to 'src/screens/Signup/StepInfo/index.tsx')
-rw-r--r-- | src/screens/Signup/StepInfo/index.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/screens/Signup/StepInfo/index.tsx b/src/screens/Signup/StepInfo/index.tsx index 136592a0b..d22d1323a 100644 --- a/src/screens/Signup/StepInfo/index.tsx +++ b/src/screens/Signup/StepInfo/index.tsx @@ -36,9 +36,9 @@ export function StepInfo() { <View style={[a.gap_md]}> <FormError error={state.error} /> <View> - <TextField.Label> + <TextField.LabelText> <Trans>Hosting provider</Trans> - </TextField.Label> + </TextField.LabelText> <HostingProvider serviceUrl={state.serviceUrl} onSelectServiceUrl={v => @@ -54,9 +54,9 @@ export function StepInfo() { <> {state.serviceDescription.inviteCodeRequired && ( <View> - <TextField.Label> + <TextField.LabelText> <Trans>Invite code</Trans> - </TextField.Label> + </TextField.LabelText> <TextField.Root> <TextField.Icon icon={Ticket} /> <TextField.Input @@ -76,9 +76,9 @@ export function StepInfo() { </View> )} <View> - <TextField.Label> + <TextField.LabelText> <Trans>Email</Trans> - </TextField.Label> + </TextField.LabelText> <TextField.Root> <TextField.Icon icon={Envelope} /> <TextField.Input @@ -97,9 +97,9 @@ export function StepInfo() { </TextField.Root> </View> <View> - <TextField.Label> + <TextField.LabelText> <Trans>Password</Trans> - </TextField.Label> + </TextField.LabelText> <TextField.Root> <TextField.Icon icon={Lock} /> <TextField.Input @@ -117,9 +117,9 @@ export function StepInfo() { </TextField.Root> </View> <View> - <DateField.Label> + <DateField.LabelText> <Trans>Your birth date</Trans> - </DateField.Label> + </DateField.LabelText> <DateField.DateField testID="date" value={DateField.utils.toSimpleDateString(state.dateOfBirth)} |