Update text of button when unhiding a story

This commit is contained in:
trevor-signal 2024-09-27 13:44:56 -04:00 committed by GitHub
parent ea65b1390b
commit b1a0b9a7a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 15 deletions

View file

@ -516,7 +516,9 @@ export function StoryViewer({
onClick: () => setCurrentViewTarget(StoryViewTargetType.Details),
},
{
icon: 'StoryListItem__icon--hide',
icon: isHidden
? 'StoryListItem__icon--unhide'
: 'StoryListItem__icon--hide',
label: isHidden
? i18n('icu:StoryListItem__unhide')
: i18n('icu:StoryListItem__hide'),