Update redirects for teams.
This commit is contained in:
1 parent
1955166bdf
commit
f01073c46a
4 files changed
+26
-7
No files matched your search
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user