Skip to content

Commit 13a7a2e

Browse files
committed
feat: add copy user ID to user menu
Signed-off-by: Asraye <[email protected]>
1 parent e2c595c commit 13a7a2e

File tree

1 file changed

+7
-0
lines changed
  • packages/client/src/interface/navigation/servers

1 file changed

+7
-0
lines changed

packages/client/src/interface/navigation/servers/UserMenu.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ export function UserMenu(props: Props) {
224224
<Trans>Clear status</Trans>
225225
</ContextMenuButton>
226226
</Show>
227+
228+
<ContextMenuButton
229+
icon={MdInfo}
230+
onClick={() => navigator.clipboard.writeText(user()!.id)}
231+
>
232+
<Trans>Copy User ID</Trans>
233+
</ContextMenuButton>
227234
</ContextMenu>
228235
</Motion>
229236
</Show>

0 commit comments

Comments
 (0)