redirect to dashboard from root route

master
Tudor Stanciu 2023-03-04 22:11:39 +02:00
parent 39216f85d3
commit 09b6002546
1 changed files with 1 additions and 0 deletions

View File

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