fix placeholder text of modlist dialog
This commit is contained in:
@@ -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 that 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