mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Teams context settings.
This commit is contained in:
parent
4429198397
commit
8f853ddb97
77 changed files with 317 additions and 272 deletions
|
|
@ -8,14 +8,16 @@ import LanguageButton from 'components/input/LanguageButton';
|
|||
import ProfileButton from 'components/input/ProfileButton';
|
||||
import TeamsButton from 'components/input/TeamsButton';
|
||||
import Icons from 'components/icons';
|
||||
import { useLogin, useMessages, useNavigation } from 'components/hooks';
|
||||
import { useLogin, useMessages, useNavigation, useTeamContext } from 'components/hooks';
|
||||
import styles from './NavBar.module.css';
|
||||
|
||||
export function NavBar() {
|
||||
const { user } = useLogin();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { pathname } = useNavigation();
|
||||
const { teamId, renderTeamUrl } = useTeamContext();
|
||||
|
||||
const cloudMode = Boolean(process.env.cloudMode);
|
||||
const { pathname, renderTeamUrl, teamId } = useNavigation();
|
||||
|
||||
const links = [
|
||||
{ label: formatMessage(labels.dashboard), url: renderTeamUrl('/dashboard') },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue