mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-25 11:42:30 +01:00
fix double divider in message context menu
This commit is contained in:
parent
ea74c1609a
commit
88dba4cdf0
@ -40,11 +40,13 @@ function MessageContextMenu({ message }: MenuProps) {
|
|||||||
<ContextMenuDivider />
|
<ContextMenuDivider />
|
||||||
{(message.channel.hasPermission("MANAGE_MESSAGES") || message.author.id === app.account?.id) &&
|
{(message.channel.hasPermission("MANAGE_MESSAGES") || message.author.id === app.account?.id) &&
|
||||||
message instanceof Message && (
|
message instanceof Message && (
|
||||||
<ContextMenuButton icon="mdiDelete" destructive onClick={deleteMessage}>
|
<>
|
||||||
Delete Message
|
<ContextMenuButton icon="mdiDelete" destructive onClick={deleteMessage}>
|
||||||
</ContextMenuButton>
|
Delete Message
|
||||||
|
</ContextMenuButton>
|
||||||
|
<ContextMenuDivider />
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
<ContextMenuDivider />
|
|
||||||
<ContextMenuButton
|
<ContextMenuButton
|
||||||
icon="mdiIdentifier"
|
icon="mdiIdentifier"
|
||||||
onClick={copyId}
|
onClick={copyId}
|
||||||
|
Loading…
Reference in New Issue
Block a user