diff --git a/src/components/planner/Schedule.tsx b/src/components/planner/Schedule.tsx index 856ea494..fdf5f762 100644 --- a/src/components/planner/Schedule.tsx +++ b/src/components/planner/Schedule.tsx @@ -64,6 +64,7 @@ const Schedule = () => { return ( <> + {/*Schedule desktop*/}
{/* Days Column Names */}
@@ -105,6 +106,7 @@ const Schedule = () => {
+ {/* Bottom bar */}
@@ -116,6 +118,26 @@ const Schedule = () => {
+ + {/*Schedule mobile*/} +
+
+
+
+ {classes + .filter((c) => c.classInfo !== undefined) + .map((c) => ( + + ))} +
+
+
+ ) } diff --git a/src/components/planner/schedules/ClassBox.tsx b/src/components/planner/schedules/ClassBox.tsx index 08cbe064..b6769bde 100644 --- a/src/components/planner/schedules/ClassBox.tsx +++ b/src/components/planner/schedules/ClassBox.tsx @@ -1,5 +1,6 @@ import { CourseInfo, ClassInfo, ClassDescriptor } from '../../../@types' import LessonBox from './LessonBox' +import ResponsiveLessonBox from './ResponsiveLessonBox' type Props = { courseInfo: CourseInfo @@ -7,18 +8,31 @@ type Props = { classes: ClassDescriptor[] } -const ClassBox = ({courseInfo, classInfo, classes} : Props) => { +const ClassBox = ({ courseInfo, classInfo, classes }: Props) => { return ( <> - {classInfo.slots.map((slot, index) => ( + {classInfo.slots.map((slot, index) => ( + <> +
classDescriptor.classInfo.id !== classInfo.id)} /> - ))} +
+ +
+ +
+ + ))} ) } diff --git a/src/components/planner/sidebar/SelectedOptionController.tsx b/src/components/planner/sidebar/SelectedOptionController.tsx index b4f80586..b51c5222 100644 --- a/src/components/planner/sidebar/SelectedOptionController.tsx +++ b/src/components/planner/sidebar/SelectedOptionController.tsx @@ -7,6 +7,9 @@ import MultipleOptionsContext from '../../../contexts/MultipleOptionsContext' import { CourseOption } from '../../../@types' import { ThemeContext } from '../../../contexts/ThemeContext' import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover' +import { Button } from '../../ui/button' +import { ArrowPathIcon } from '@heroicons/react/24/outline' +import { CheckIcon } from 'lucide-react' type Props = { currentOption: CourseOption[]