From 18d6613efb688fe9bdcb4e49b949f8549dbfe371 Mon Sep 17 00:00:00 2001 From: Hayden Smith Date: Wed, 28 Feb 2024 08:30:28 +1100 Subject: [PATCH] Fixing up issues with url redirecting --- frontend/src/page/Assessments/AssessmentsAssignments.jsx | 8 ++++---- frontend/src/page/Content/ContentTutorials.content.jsx | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/page/Assessments/AssessmentsAssignments.jsx b/frontend/src/page/Assessments/AssessmentsAssignments.jsx index e66ca59..7e723bc 100644 --- a/frontend/src/page/Assessments/AssessmentsAssignments.jsx +++ b/frontend/src/page/Assessments/AssessmentsAssignments.jsx @@ -20,22 +20,22 @@ const AssessmentsAssignments = ({ }) => { { title: 'Ass1', icon: , - subRoute: 'pictocode', + subRoute: 'ass1', }, { title: 'Ass2', icon: , - subRoute: 'funform', + subRoute: 'ass2', }, { title: 'Ass3', icon: , - subRoute: 'qanda', + subRoute: 'ass3', }, { title: 'Ass4', icon: , - subRoute: 'presto', + subRoute: 'ass4', }, ]; diff --git a/frontend/src/page/Content/ContentTutorials.content.jsx b/frontend/src/page/Content/ContentTutorials.content.jsx index 76b2b5a..cbfe41c 100644 --- a/frontend/src/page/Content/ContentTutorials.content.jsx +++ b/frontend/src/page/Content/ContentTutorials.content.jsx @@ -1,4 +1,5 @@ import Button from '@mui/material/Button'; +import config from '../../config'; import { isHalfScreenWidth, isTinyMobileWidth, isMobileWidth, isBigDesktopWidth, isDesktopWidth } from '../../util/screen'; @@ -33,7 +34,7 @@ export const generateContent = (getters, by) => { { value: tutorial.stream.join(', '), }, { value: tutorial.importance, }, { Raw: () => ( - + )} ]); });