mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Update redirects for teams.
This commit is contained in:
parent
1955166bdf
commit
f01073c46a
4 changed files with 26 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ export function NavBar() {
|
|||
const { pathname } = useNavigation();
|
||||
const { teamId, renderTeamUrl } = useTeamUrl();
|
||||
|
||||
const cloudMode = Boolean(process.env.cloudMode);
|
||||
const cloudMode = !!process.env.cloudMode;
|
||||
|
||||
const links = [
|
||||
{ label: formatMessage(labels.dashboard), url: renderTeamUrl('/dashboard') },
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
import SettingsLayout from './SettingsLayout';
|
||||
|
||||
export default function ({ children }) {
|
||||
if (process.env.cloudMode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <SettingsLayout>{children}</SettingsLayout>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue