redirect to dashboard from root route
parent
39216f85d3
commit
09b6002546
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue