File tree 2 files changed +26
-29
lines changed
2 files changed +26
-29
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ export function getCurrentSemester() {
37
37
season = 'S' ;
38
38
else season = 'F' ;
39
39
40
- return {
41
- season : "F" ,
42
- yyyy : 2024
43
- }
44
40
return {
45
41
season : season ,
46
42
yyyy : yyyy ,
@@ -77,7 +73,6 @@ export function getNextLongSemester(season: string, yyyy: number) {
77
73
} ;
78
74
}
79
75
80
-
81
76
/** A comparator function used when sorting semesters by name. Returns -1 if semester 'a' is more older than semester 'b'. */
82
77
export function compareSemesters ( a : string , b : string ) {
83
78
const x = a . substring ( 0 , 2 ) . localeCompare ( b . substring ( 0 , 2 ) ) ;
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function Row({
161
161
section . professors . includes ( professor . data . _id ) ,
162
162
) ;
163
163
// if upcoming semester
164
- const upcomingSemester = ( nextSemester . yyyy % 100 ) + nextSemester . season
164
+ const upcomingSemester = ( nextSemester . yyyy % 100 ) + nextSemester . season ;
165
165
if (
166
166
professorSections . filter (
167
167
( section ) => section . academic_session . name == upcomingSemester ,
@@ -286,29 +286,31 @@ function Row({
286
286
) ) ||
287
287
( grades . state === 'done' && (
288
288
< >
289
- < Tooltip
290
- title = {
291
- 'Last taught in: ' +
292
- displayAcademicSessionName ( most_recent_semester , false )
293
- }
294
- placement = "top"
295
- >
296
- < Typography className = "text-xs text-black text-center rounded-full px-1 py-1 ml-1 w-8 block bg-cornflower-50" >
297
- { most_recent_semester }
298
- </ Typography >
299
- </ Tooltip >
300
- { teachingNextSemester && < Tooltip
301
- title = {
302
- 'Also teaching in ' +
303
- displayAcademicSessionName ( teachingNextSemester , false )
304
- }
305
- placement = "top"
306
- >
307
- < Typography className = "text-xs text-black text-center rounded-full px-1 py-1 ml-1 w-8 block bg-cornflower-400" >
308
- { teachingNextSemester }
309
- </ Typography >
310
- </ Tooltip > }
311
- </ >
289
+ < Tooltip
290
+ title = {
291
+ 'Last taught in: ' +
292
+ displayAcademicSessionName ( most_recent_semester , false )
293
+ }
294
+ placement = "top"
295
+ >
296
+ < Typography className = "text-xs text-black text-center rounded-full px-1 py-1 ml-1 w-8 block bg-cornflower-50" >
297
+ { most_recent_semester }
298
+ </ Typography >
299
+ </ Tooltip >
300
+ { teachingNextSemester && (
301
+ < Tooltip
302
+ title = {
303
+ 'Also teaching in ' +
304
+ displayAcademicSessionName ( teachingNextSemester , false )
305
+ }
306
+ placement = "top"
307
+ >
308
+ < Typography className = "text-xs text-black text-center rounded-full px-1 py-1 ml-1 w-8 block bg-cornflower-400" >
309
+ { teachingNextSemester }
310
+ </ Typography >
311
+ </ Tooltip >
312
+ ) }
313
+ </ >
312
314
) ) ||
313
315
null }
314
316
</ div >
You can’t perform that action at this time.
0 commit comments