2021-05-11 14:37:15 +00:00
|
|
|
import React from "react"
|
2021-04-26 20:08:52 +00:00
|
|
|
import { Route, Switch } from "react-router"
|
|
|
|
import PageLogin from "./routes/PageLogin"
|
|
|
|
import PageRepositories from "./routes/PageRepositories"
|
|
|
|
import PageAlerts from "./routes/PageAlerts"
|
|
|
|
import PageSettings from "./routes/PageSettings"
|
|
|
|
import PageDashboard from "./routes/PageDashboard"
|
|
|
|
import PageRoot from "./routes/PageRoot"
|
2021-05-10 13:22:07 +00:00
|
|
|
import PageEdit from "./routes/PageEdit"
|
2021-05-11 21:27:42 +00:00
|
|
|
import PageUsers from "./routes/PageUsers"
|
2021-05-15 16:05:13 +00:00
|
|
|
import PageRepository from "./routes/PageRepository"
|
2021-05-23 14:32:28 +00:00
|
|
|
import PageShare from "./routes/PageShare"
|
2021-04-26 20:08:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
export default function PageSwitcher({ ...props }) {
|
|
|
|
return (
|
|
|
|
<Switch {...props}>
|
2021-05-24 01:42:30 +00:00
|
|
|
<Route path={"/repositories/:id/alerts"} exact={true}>
|
|
|
|
<PageAlerts/>
|
|
|
|
</Route>
|
2021-05-23 14:32:28 +00:00
|
|
|
<Route path={"/repositories/:id/share"} exact={true}>
|
|
|
|
<PageShare/>
|
|
|
|
</Route>
|
2021-05-11 21:27:42 +00:00
|
|
|
<Route path={"/repositories/:id/edit"} exact={true}>
|
|
|
|
<PageEdit/>
|
|
|
|
</Route>
|
2021-05-15 16:05:13 +00:00
|
|
|
<Route path={"/repositories/:id"} exact={true}>
|
|
|
|
<PageRepository/>
|
|
|
|
</Route>
|
2021-04-26 20:08:52 +00:00
|
|
|
<Route path={"/login"} exact={true}>
|
|
|
|
<PageLogin/>
|
|
|
|
</Route>
|
2021-05-11 21:27:42 +00:00
|
|
|
<Route path={"/users"} exact={true}>
|
|
|
|
<PageUsers/>
|
2021-05-10 13:22:07 +00:00
|
|
|
</Route>
|
2021-04-26 20:08:52 +00:00
|
|
|
<Route path={"/repositories"} exact={true}>
|
|
|
|
<PageRepositories/>
|
|
|
|
</Route>
|
|
|
|
<Route path={"/settings"} exact={true}>
|
|
|
|
<PageSettings/>
|
|
|
|
</Route>
|
|
|
|
<Route path={"/dashboard"} exact={true}>
|
|
|
|
<PageDashboard/>
|
|
|
|
</Route>
|
|
|
|
<Route path={"/"}>
|
|
|
|
<PageRoot/>
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
|
|
|
)
|
|
|
|
}
|