mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-26 01:09:02 -05:00
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import { Routes as SolidAppRoutes, Route } from "solid-app-router";
|
|
import { lazy } from "solid-js";
|
|
import { MapPoolTab } from "./old/scenes/tournament/components/MapPoolTab";
|
|
import { TeamsTab } from "./old/scenes/tournament/components/TeamsTab";
|
|
import TournamentData from "./old/scenes/tournament/TournamentPage.data";
|
|
|
|
const TournamentsPage = lazy(
|
|
() => import("./old/scenes/tournament/components/TournamentPage")
|
|
);
|
|
|
|
export function Routes() {
|
|
return (
|
|
<SolidAppRoutes>
|
|
<Route
|
|
path="/to/:organization/:tournament"
|
|
element={<TournamentsPage />}
|
|
// TODO: fix type error
|
|
data={TournamentData as any}
|
|
>
|
|
<Route path="/map-pool" element={<MapPoolTab />} />
|
|
<Route path="/bracket" element={() => <>bracket</>} />
|
|
<Route path="/teams" element={<TeamsTab />} />
|
|
<Route path="/streams" element={() => <>streams</>} />
|
|
<Route path="/*all" element={() => <>overview</>} />
|
|
</Route>
|
|
<Route path="/links" element={() => <div>links page</div>} />
|
|
<Route path="/" element={() => <>home!</>} />
|
|
<Route path="/*all" element={() => <>Not found</>} />
|
|
</SolidAppRoutes>
|
|
);
|
|
}
|