Hidden stories list/unhide stories
This commit is contained in:
parent
c165bc964a
commit
d776deae01
5 changed files with 84 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue