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