Fix : Do not render the slack chat component directly as child of router switch (#9166)

This commit is contained in:
Sachin Chaurasiya 2022-12-06 15:34:01 +05:30 committed by GitHub
parent d2fdb47f22
commit 24ff5562db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,8 +137,9 @@ const AppRouter = () => {
}
return (
<Switch>
<>
{slackChat}
<Switch>
<Route exact component={SigninPage} path={ROUTES.SIGNIN} />
{callbackComponent ? (
<Route component={callbackComponent} path={ROUTES.CALLBACK} />
@ -162,7 +163,11 @@ const AppRouter = () => {
component={ForgotPassword}
path={ROUTES.FORGOT_PASSWORD}
/>
<Route exact component={ResetPassword} path={ROUTES.RESET_PASSWORD} />
<Route
exact
component={ResetPassword}
path={ROUTES.RESET_PASSWORD}
/>
<Route
exact
component={AccountActivationConfirmation}
@ -173,6 +178,7 @@ const AppRouter = () => {
{isAuthenticated && <AuthenticatedAppRouter />}
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
</Switch>
</>
);
};