add top-level redirect
This commit is contained in:
parent
fed168af4c
commit
98b4301d52
|
@ -22,7 +22,7 @@ const Promise = require("bluebird");
|
||||||
const React = require("react");
|
const React = require("react");
|
||||||
const ReactDom = require("react-dom");
|
const ReactDom = require("react-dom");
|
||||||
const Redux = require("react-redux");
|
const Redux = require("react-redux");
|
||||||
const { Switch } = require("wouter");
|
const { Switch, Route, Redirect } = require("wouter");
|
||||||
const { Provider } = require("react-redux");
|
const { Provider } = require("react-redux");
|
||||||
const { PersistGate } = require("redux-persist/integration/react");
|
const { PersistGate } = require("redux-persist/integration/react");
|
||||||
|
|
||||||
|
@ -118,6 +118,9 @@ function App() {
|
||||||
<section className="with-sidebar">
|
<section className="with-sidebar">
|
||||||
{ErrorElement}
|
{ErrorElement}
|
||||||
<Switch>
|
<Switch>
|
||||||
|
<Route path="/settings">
|
||||||
|
<Redirect to="/settings/user" />
|
||||||
|
</Route>
|
||||||
{panelRouter}
|
{panelRouter}
|
||||||
</Switch>
|
</Switch>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue