Fix copy buttons in context menu
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m10s

This commit is contained in:
Braydon 2024-04-17 20:54:15 -04:00
parent b52f9d1d38
commit 367c974cb3

@ -119,18 +119,18 @@ const PlayerResult = ({
</div> </div>
</div> </div>
</ContextMenuTrigger> </ContextMenuTrigger>
<ContextMenuContent> <ContextMenuContent className="flex flex-col">
<ContextMenuItem> <CopyButton content={username}>
<CopyButton content={username}>Copy Player Username</CopyButton> <ContextMenuItem>Copy Player Username</ContextMenuItem>
</ContextMenuItem> </CopyButton>
<ContextMenuItem>
<CopyButton content={uniqueId}>Copy Player UUID</CopyButton> <CopyButton content={uniqueId}>
</ContextMenuItem> <ContextMenuItem>Copy Player UUID</ContextMenuItem>
<ContextMenuItem> </CopyButton>
<CopyButton content={`${config.siteUrl}/player/${query}`}>
Copy Share URL <CopyButton content={`${config.siteUrl}/player/${query}`}>
</CopyButton> <ContextMenuItem>Copy Share URL</ContextMenuItem>
</ContextMenuItem> </CopyButton>
</ContextMenuContent> </ContextMenuContent>
</ContextMenu> </ContextMenu>
); );