diff --git a/src/app/(main)/SideNav.tsx b/src/app/(main)/SideNav.tsx index 51c85c06f..c06958781 100644 --- a/src/app/(main)/SideNav.tsx +++ b/src/app/(main)/SideNav.tsx @@ -144,7 +144,7 @@ export function SideNav(props: any) { )} - + diff --git a/src/components/input/TeamsButton.tsx b/src/components/input/TeamsButton.tsx index 1ef0475f3..014b7f79b 100644 --- a/src/components/input/TeamsButton.tsx +++ b/src/components/input/TeamsButton.tsx @@ -1,11 +1,11 @@ import { Button, + DialogTrigger, Icon, Menu, MenuItem, MenuSection, MenuSeparator, - MenuTrigger, Popover, Row, Text, @@ -53,7 +53,7 @@ export function TeamsButton() { }; return ( - + ); - return ( - - {showText ? ( - trigger - ) : ( - - {trigger} - {user.username} - - )} + const menu = ( + + {trigger} @@ -224,6 +221,17 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) { - + + ); + + if (showText) { + return menu; + } + + return ( + + {menu} + {user.username} + ); }