21 lines
635 B
TypeScript
21 lines
635 B
TypeScript
import { lazy } from "react";
|
|
import { Navigate, Route, Routes } from "react-router-dom";
|
|
|
|
import "@/roundtable-planning/styles/roundtable-planning.css";
|
|
|
|
const RoundtablePlanningPage = lazy(
|
|
() => import("@/roundtable-planning/pages/RoundtablePlanningPage"),
|
|
);
|
|
|
|
export default function RoundtableRoutes() {
|
|
return (
|
|
<div className="h-full w-full overflow-hidden">
|
|
<Routes>
|
|
<Route index element={<Navigate to="planning" replace />} />
|
|
<Route path="planning" element={<RoundtablePlanningPage />} />
|
|
<Route path="*" element={<Navigate to="planning" replace />} />
|
|
</Routes>
|
|
</div>
|
|
);
|
|
}
|