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:
@@ -62,7 +62,7 @@ export function HeaderText({
|
|||||||
style?: StyleProp<TextStyle>
|
style?: StyleProp<TextStyle>
|
||||||
}) {
|
}) {
|
||||||
return (
|
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}
|
{children}
|
||||||
</Text>
|
</Text>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -349,6 +349,14 @@ function DialogInner({
|
|||||||
? _(msg`Create user list`)
|
? _(msg`Create user list`)
|
||||||
: _(msg`Create moderation 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 (
|
return (
|
||||||
<Dialog.ScrollableInner
|
<Dialog.ScrollableInner
|
||||||
label={title}
|
label={title}
|
||||||
@@ -389,7 +397,7 @@ function DialogInner({
|
|||||||
defaultValue={displayName}
|
defaultValue={displayName}
|
||||||
onChangeText={onChangeDisplayName}
|
onChangeText={onChangeDisplayName}
|
||||||
label={_(msg`Name`)}
|
label={_(msg`Name`)}
|
||||||
placeholder={_(msg`e.g. Great Posters`)}
|
placeholder={displayNamePlaceholder}
|
||||||
testID="editListNameInput"
|
testID="editListNameInput"
|
||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
@@ -426,7 +434,7 @@ function DialogInner({
|
|||||||
onChangeText={onChangeDescription}
|
onChangeText={onChangeDescription}
|
||||||
multiline
|
multiline
|
||||||
label={_(msg`Description`)}
|
label={_(msg`Description`)}
|
||||||
placeholder={_(msg`e.g. The posters that never miss.`)}
|
placeholder={descriptionPlaceholder}
|
||||||
testID="editProfileDescriptionInput"
|
testID="editProfileDescriptionInput"
|
||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
|
|||||||
Reference in New Issue
Block a user