Hidden stories list/unhide stories

This commit is contained in:
Josh Perez 2022-04-15 18:31:18 -04:00 committed by GitHub
parent c165bc964a
commit d776deae01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 84 additions and 14 deletions

View file

@ -213,9 +213,15 @@ export const StoryListItem = ({
menuOptions={[
{
icon: 'StoryListItem__icon--hide',
label: i18n('StoryListItem__hide'),
label: isHidden
? i18n('StoryListItem__unhide')
: i18n('StoryListItem__hide'),
onClick: () => {
setHasConfirmHideStory(true);
if (isHidden) {
onHideStory?.(sender.id);
} else {
setHasConfirmHideStory(true);
}
},
},
{