diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-14 00:39:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-14 00:39:22 +0300 |
commit | f001af2fe3ca977beb22fefefb2f98ba2c076d49 (patch) | |
tree | da94ca35745cf77d3521975d17424d3d116c8017 /src | |
parent | d5cc19f282b1e7656cf5ea60eb689819fdac2671 (diff) | |
download | voidsky-f001af2fe3ca977beb22fefefb2f98ba2c076d49.tar.zst |
stop incorrectly using suffixtext (#8352)
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Profile/Header/EditProfileDialog.tsx | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/src/screens/Profile/Header/EditProfileDialog.tsx b/src/screens/Profile/Header/EditProfileDialog.tsx index 8d86a023b..95160ce86 100644 --- a/src/screens/Profile/Header/EditProfileDialog.tsx +++ b/src/screens/Profile/Header/EditProfileDialog.tsx @@ -23,6 +23,7 @@ import * as TextField from '#/components/forms/TextField' import {InlineLinkText} from '#/components/Link' import {Loader} from '#/components/Loader' import * as Prompt from '#/components/Prompt' +import {Text} from '#/components/Typography' import {useSimpleVerificationState} from '#/components/verification' const DISPLAY_NAME_MAX_GRAPHEMES = 64 @@ -329,22 +330,18 @@ function DialogInner({ /> </TextField.Root> {displayNameTooLong && ( - <TextField.SuffixText + <Text style={[ a.text_sm, a.mt_xs, a.font_bold, {color: t.palette.negative_400}, - ]} - label={_(msg`Display name is too long`)}> - <Trans> - Display name is too long.{' '} - <Plural - value={DISPLAY_NAME_MAX_GRAPHEMES} - other="The maximum number of characters is #." - /> - </Trans> - </TextField.SuffixText> + ]}> + <Plural + value={DISPLAY_NAME_MAX_GRAPHEMES} + other="Display name is too long. The maximum number of characters is #." + /> + </Text> )} </View> @@ -379,22 +376,18 @@ function DialogInner({ /> </TextField.Root> {descriptionTooLong && ( - <TextField.SuffixText + <Text style={[ a.text_sm, a.mt_xs, a.font_bold, {color: t.palette.negative_400}, - ]} - label={_(msg`Description is too long`)}> - <Trans> - Description is too long.{' '} - <Plural - value={DESCRIPTION_MAX_GRAPHEMES} - other="The maximum number of characters is #." - /> - </Trans> - </TextField.SuffixText> + ]}> + <Plural + value={DESCRIPTION_MAX_GRAPHEMES} + other="Description is too long. The maximum number of characters is #." + /> + </Text> )} </View> </View> |