diff --git a/frontend/app/PrivateRoutes.tsx b/frontend/app/PrivateRoutes.tsx index 09729bd4d..1f48c2bc9 100644 --- a/frontend/app/PrivateRoutes.tsx +++ b/frontend/app/PrivateRoutes.tsx @@ -98,17 +98,15 @@ const SPOT_PATH = routes.spot(); const SCOPE_SETUP = routes.scopeSetup(); interface Props { - isEnterprise: boolean; tenantId: string; siteId: string; - jwt: string; sites: Map; onboarding: boolean; spotOnly?: boolean; } function PrivateRoutes(props: Props) { - const { onboarding, sites, siteId, jwt } = props; + const { onboarding, sites, siteId } = props; const redirectToOnboarding = !onboarding && localStorage.getItem(GLOBAL_HAS_NO_RECORDINGS) === 'true'; const siteIdList: any = sites.map(({ id }) => id).toJS(); @@ -266,26 +264,21 @@ function PrivateRoutes(props: Props) { path={withSiteId(LIVE_SESSION_PATH, siteIdList)} component={enhancedComponents.LiveSession} /> - {Object.entries(routes.redirects).map(([fr, to]) => ( - - ))} - + {/*{Object.entries(routes.redirects).map(([fr, to]) => (*/} + {/* */} + {/*))}*/} + {/**/} } - {props.spotOnly ? : null} + {props.spotOnly ? : null} ); } export default connect((state: any) => ({ - changePassword: state.getIn(['user', 'account', 'changePassword']), onboarding: state.getIn(['user', 'onboarding']), sites: state.getIn(['site', 'list']), siteId: state.getIn(['site', 'siteId']), - jwt: state.getIn(['user', 'jwt']), spotOnly: getScope(state) === 'spot', tenantId: state.getIn(['user', 'account', 'tenantId']), - isEnterprise: - state.getIn(['user', 'account', 'edition']) === 'ee' || - state.getIn(['user', 'authDetails', 'edition']) === 'ee', }))(PrivateRoutes);