add result page

This commit is contained in:
MikanD
2025-06-01 00:52:20 +03:00
parent 48ec88df74
commit 4a5b0a9532
8 changed files with 1146 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
// App.tsx
import {BrowserRouter as Router, Routes, Route, Navigate, Link} from 'react-router-dom';
import React from "react";
import {MainPage} from "./pages/MainPage.tsx";
import {SurveyPage} from "./pages/SurveyPage.tsx";
import {DashboardPage} from "./pages/DashboardPage.tsx";
import { SurveyResultPage } from './pages/SurveyResultPage.tsx';
@@ -16,6 +16,7 @@ export default function App() {
</div>
<Routes>
<Route path="/" element={<MainPage/>}/>
<Route path="/surveys/results/:scoreVariableId/" element={<SurveyResultPage/>}/>
<Route path="/surveys/:surveyId/" element={<SurveyPage/>}/>
<Route path="/dashboard/" element={<DashboardPage/>}/>
<Route path="*" element={<Navigate to="/"/>}/>