Update redirects for teams.

This commit is contained in:
Mike Cao 2024-02-14 22:13:13 -08:00
parent 1955166bdf
commit f01073c46a
4 changed files with 26 additions and 7 deletions

View file

@ -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') },

View file

@ -1,5 +1,9 @@
import SettingsLayout from './SettingsLayout';
export default function ({ children }) {
if (process.env.cloudMode) {
return null;
}
return <SettingsLayout>{children}</SettingsLayout>;
}