feat(exam): add SAT style testing component
This commit is contained in:
39
src/App.tsx
39
src/App.tsx
@ -1,19 +1,19 @@
|
||||
import { Home } from "./pages/student/Home";
|
||||
import {
|
||||
createBrowserRouter,
|
||||
Navigate,
|
||||
RouterProvider,
|
||||
} from "react-router-dom";
|
||||
import { Login } from "./pages/auth/Login";
|
||||
import { Home } from "./pages/student/Home";
|
||||
import { Practice } from "./pages/student/Practice";
|
||||
import { Rewards } from "./pages/student/Rewards";
|
||||
import { Profile } from "./pages/student/Profile";
|
||||
import { Lessons } from "./pages/student/Lessons";
|
||||
import { ProtectedRoute } from "./components/ProtectedRoute";
|
||||
import { StudentLayout } from "./pages/student/StudentLayout";
|
||||
import { Test } from "./pages/student/practice/Test";
|
||||
import { Results } from "./pages/student/practice/Results";
|
||||
import { Login } from "./pages/auth/Login";
|
||||
import { Lessons } from "./pages/student/Lessons";
|
||||
import { Practice } from "./pages/student/Practice";
|
||||
import { Pretest } from "./pages/student/practice/Pretest";
|
||||
import { Results } from "./pages/student/practice/Results";
|
||||
import { Test } from "./pages/student/practice/Test";
|
||||
import { Profile } from "./pages/student/Profile";
|
||||
import { Rewards } from "./pages/student/Rewards";
|
||||
import { StudentLayout } from "./pages/student/StudentLayout";
|
||||
|
||||
function App() {
|
||||
const router = createBrowserRouter([
|
||||
@ -51,21 +51,18 @@ function App() {
|
||||
{
|
||||
path: "practice/:sheetId",
|
||||
element: <Pretest />,
|
||||
children: [
|
||||
{
|
||||
path: "test",
|
||||
element: <Test />,
|
||||
},
|
||||
{
|
||||
path: "results",
|
||||
element: <Results />,
|
||||
},
|
||||
],
|
||||
},
|
||||
// more student subroutes here
|
||||
],
|
||||
},
|
||||
// Add more subroutes here as needed
|
||||
|
||||
{
|
||||
path: "practice/:sheetId/test",
|
||||
element: <Test />,
|
||||
},
|
||||
{
|
||||
path: "practice/:sheetId/test/results",
|
||||
element: <Results />,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user