1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24: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 classNames from "classnames"
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 ContextTheme from "./contexts/ContextTheme"
import { BrowserRouter } from "react-router-dom"
@ -26,9 +21,6 @@ export default function App() {
<div className={classNames(Style.App, theme)}>
<Layout>
<Switch>
<Route path={"/"}>
<PageHome/>
</Route>
<Route path={"/repositories"}>
<PageRepositories/>
</Route>
@ -38,6 +30,9 @@ export default function App() {
<Route path={"/settings"}>
<PageSettings/>
</Route>
<Route path={"/"}>
<PageHome/>
</Route>
</Switch>
</Layout>
</div>