Forum Panel: Fix context menu for topics (#3332)
This commit is contained in:
parent
8dbb4402a4
commit
89ccff7d9a
@ -168,6 +168,7 @@ const Topic: FC<OwnProps & StateProps> = ({
|
||||
style={style}
|
||||
href={IS_OPEN_IN_NEW_TAB_SUPPORTED ? `#${createLocationHash(chatId, 'thread', topic.id)}` : undefined}
|
||||
contextActions={contextActions}
|
||||
withPortalForMenu
|
||||
ref={ref}
|
||||
>
|
||||
<div className="info">
|
||||
|
||||
@ -53,8 +53,6 @@ export default function useTopicContextActions({
|
||||
},
|
||||
};
|
||||
|
||||
const newTabActionSeparator = actionOpenInNewTab && { isSeparator: true, key: 'newTabSeparator' };
|
||||
|
||||
const actionUnreadMark = topic.unreadCount || !wasOpened
|
||||
? {
|
||||
title: lang('MarkAsRead'),
|
||||
@ -110,7 +108,6 @@ export default function useTopicContextActions({
|
||||
|
||||
return compact([
|
||||
actionOpenInNewTab,
|
||||
newTabActionSeparator,
|
||||
actionPin,
|
||||
actionUnreadMark,
|
||||
actionMute,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user