redirect to dashboard from root route

This commit is contained in:
Tudor Stanciu 2023-03-04 22:11:39 +02:00
parent 39216f85d3
commit 09b6002546

View File

@ -62,6 +62,7 @@ const App = () => {
return (
<BrowserRouter basename={process.env.PUBLIC_URL || ""}>
<Switch>
<Route exact path="/" render={() => <Redirect to="/dashboard" />} />
<PublicRoute path="/login" component={LoginContainer} />
<PrivateRoute path="/" component={AppLayout} />
</Switch>