diff --git a/frontend/app/Router.js b/frontend/app/Router.js index 6a0ba1771..74c09b761 100644 --- a/frontend/app/Router.js +++ b/frontend/app/Router.js @@ -166,76 +166,77 @@ class Router extends React.Component { const hideHeader = location.pathname && location.pathname.includes('/session/') || location.pathname.includes('/assist/'); return isLoggedIn ? + - - {!hideHeader &&
} - }> - - - - - { - const client = new APIClient(jwt); - switch (location.pathname) { - case '/integrations/slack': - client.post('integrations/slack/add', { - code: location.search.split('=')[ 1 ], - state: tenantId, - }); - break; - } - return ; - } - } - /> - { onboarding && - - } - {/* { siteIdList.length === 0 && - - } */} + {!hideHeader &&
} + }> - {/* DASHBOARD and Metrics */} - - - - - - - + + + + { + const client = new APIClient(jwt); + switch (location.pathname) { + case '/integrations/slack': + client.post('integrations/slack/add', { + code: location.search.split('=')[ 1 ], + state: tenantId, + }); + break; + } + return ; + } + } + /> + { onboarding && + + } + {/* { siteIdList.length === 0 && + + } */} + + {/* DASHBOARD and Metrics */} + + + + + + + - - - - - - {/* */} - - - - - } /> - { routes.redirects.map(([ fr, to ]) => ( - - )) } - + + + + + + {/* */} + + + + + } /> + { routes.redirects.map(([ fr, to ]) => ( + + )) } + + + + + + : + }> + + + + { !existingTenant && } + - - - : - }> - - - - { !existingTenant && } - - - ; + ; } }