mirror of
https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector_Frontend
synced 2023-05-06 14:40:17 +03:00
redirect to dashboard from root route
This commit is contained in:
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…
x
Reference in New Issue
Block a user