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:
parent
c73624f628
commit
fb78e6112a
1 changed files with 3 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue