mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Fix mobile nav.
This commit is contained in:
parent
58df502d43
commit
c4d0c433c0
2 changed files with 32 additions and 16 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue