Fix add/edit moderation list form placeholder text (#9074)

* fix placeholder text of modlist dialog

* change header font weight

* fix string
This commit is contained in:
Samuel Newman
2025-10-10 21:57:42 +03:00
committed by GitHub
parent b15903e0cb
commit d528ae791f
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export function HeaderText({
style?: StyleProp<TextStyle>
}) {
return (
<Text style={[a.text_lg, a.text_center, a.font_bold, style]}>
<Text style={[a.text_lg, a.text_center, a.font_semi_bold, style]}>
{children}
</Text>
)
@@ -349,6 +349,14 @@ function DialogInner({
? _(msg`Create user list`)
: _(msg`Create moderation list`)
const displayNamePlaceholder = isCurateList
? _(msg`e.g. Great Posters`)
: _(msg`e.g. Spammers`)
const descriptionPlaceholder = isCurateList
? _(msg`e.g. The posters who never miss.`)
: _(msg`e.g. Users that repeatedly reply with ads.`)
return (
<Dialog.ScrollableInner
label={title}
@@ -389,7 +397,7 @@ function DialogInner({
defaultValue={displayName}
onChangeText={onChangeDisplayName}
label={_(msg`Name`)}
placeholder={_(msg`e.g. Great Posters`)}
placeholder={displayNamePlaceholder}
testID="editListNameInput"
/>
</TextField.Root>
@@ -426,7 +434,7 @@ function DialogInner({
onChangeText={onChangeDescription}
multiline
label={_(msg`Description`)}
placeholder={_(msg`e.g. The posters that never miss.`)}
placeholder={descriptionPlaceholder}
testID="editProfileDescriptionInput"
/>
</TextField.Root>