add result page
This commit is contained in:
@@ -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="/"/>}/>
|
||||
|
||||
Reference in New Issue
Block a user