Fix mobile nav.

This commit is contained in:
Brian Cao 2024-03-24 11:36:09 -07:00
parent 58df502d43
commit c4d0c433c0
2 changed files with 32 additions and 16 deletions

View file

@ -7,9 +7,11 @@ import styles from './TeamsButton.module.css';
export function TeamsButton({
className,
showText = true,
onChange,
}: {
className?: string;
showText?: boolean;
onChange?: (value: string) => void;
}) {
const { user } = useLogin();
@ -31,7 +33,7 @@ export function TeamsButton({
<PopupTrigger>
<Button className={classNames(styles.button, className)} variant="quiet">
<Icon>{teamId ? <Icons.Users /> : <Icons.User />}</Icon>
<Text>{teamId ? team?.name : user.username}</Text>
{showText && <Text>{teamId ? team?.name : user.username}</Text>}
<Icon>
<Icons.ChevronDown />
</Icon>