1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-28 23:44:19 +00:00

🐛 Fix route matching order

This commit is contained in:
Stefano Pigozzi 2021-04-21 18:32:05 +02:00
parent c73624f628
commit fb78e6112a
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01

View file

@ -1,11 +1,6 @@
import {useState} from "react" import {useState} from "react"
import classNames from "classnames" import classNames from "classnames"
import Style from "./App.module.css" import Style from "./App.module.css"
import BoxWithHeader from "./components/BoxWithHeader"
import Button from "./components/Button"
import { faArchive, faArrowRight, faExclamationTriangle, faSearch, faTrash } from "@fortawesome/free-solid-svg-icons"
import Input from "./components/Input"
import InputWithIcon from "./components/InputWithIcon"
import Layout from "./components/Layout" import Layout from "./components/Layout"
import ContextTheme from "./contexts/ContextTheme" import ContextTheme from "./contexts/ContextTheme"
import { BrowserRouter } from "react-router-dom" import { BrowserRouter } from "react-router-dom"
@ -26,9 +21,6 @@ export default function App() {
<div className={classNames(Style.App, theme)}> <div className={classNames(Style.App, theme)}>
<Layout> <Layout>
<Switch> <Switch>
<Route path={"/"}>
<PageHome/>
</Route>
<Route path={"/repositories"}> <Route path={"/repositories"}>
<PageRepositories/> <PageRepositories/>
</Route> </Route>
@ -38,6 +30,9 @@ export default function App() {
<Route path={"/settings"}> <Route path={"/settings"}>
<PageSettings/> <PageSettings/>
</Route> </Route>
<Route path={"/"}>
<PageHome/>
</Route>
</Switch> </Switch>
</Layout> </Layout>
</div> </div>