Toggle context menus on click and add active state
This commit is contained in:
parent
3eed6cb350
commit
a5497fcab8
9 changed files with 47 additions and 26 deletions
|
@ -642,9 +642,9 @@ function ReplyOrReactionMessage({
|
|||
|
||||
return reply.author.isMe && !reply.deletedForEveryone ? (
|
||||
<ContextMenu i18n={i18n} key={reply.id} menuOptions={menuOptions}>
|
||||
{({ openMenu, menuNode }) => (
|
||||
{({ onClick, menuNode }) => (
|
||||
<>
|
||||
{renderContent(openMenu)}
|
||||
{renderContent(onClick)}
|
||||
{menuNode}
|
||||
</>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue