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