File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
course-matrix/frontend/src/pages Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import TimetableCard from "./TimetableCard";
44import TimetableCompareButton from "./TimetableCompareButton" ;
55import TimetableCreateNewButton from "./TimetableCreateNewButton" ;
66import { useGetTimetablesQuery } from "../../api/timetableApiSlice" ;
7- import { Timetable } from "../../utils/type-utils" ;
87
98/**
109 * Home component that displays the user's timetables and provides options to create or compare timetables.
@@ -16,10 +15,7 @@ const Home = () => {
1615 ( user_metadata ?. user ?. user_metadata ?. username as string ) ??
1716 ( user_metadata ?. user ?. email as string ) ;
1817
19- const { data, isLoading, refetch } = useGetTimetablesQuery ( ) as {
20- data : Timetable [ ] ;
21- isLoading : boolean ;
22- } ;
18+ const { data, isLoading, refetch } = useGetTimetablesQuery ( ) ;
2319
2420 return (
2521 < div className = "w-full" >
Original file line number Diff line number Diff line change @@ -188,14 +188,14 @@ const TimetableBuilder = () => {
188188 < div className = "w-full" >
189189 < div className = "m-8" >
190190 < div className = "mb-4 flex flex-row justify-between items-center" >
191- < div className = "flex items-center gap-4 relative group" >
192- < h1 className = "text-2xl font-medium tracking-tight" >
191+ < div >
192+ < h1 className = "text-2xl font-medium tracking-tight mb-4 " >
193193 { isEditingTimetable ? "Edit Timetable" : "New Timetable" }
194194 </ h1 >
195195 { isEditingTimetable && (
196196 < Select
197197 onValueChange = { ( value ) => setTimetableId ( parseInt ( value ) ) }
198- defaultValue = { editingTimetableId . toString ( ) }
198+ defaultValue = { editingTimetableId ? editingTimetableId . toString ( ) : "" }
199199 >
200200 < SelectTrigger >
201201 < SelectValue placeholder = "Select calendar" />
You can’t perform that action at this time.
0 commit comments