File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,15 @@ export default function CourseNode({ data }: NodeProps<CourseNodeType>) {
1111 const year = data . code . match ( / \d / ) ?. [ 0 ] ;
1212
1313 const borderColour =
14- year === "1" ? "border-green-500" :
15- year === "2" ? "border-blue-500" :
16- year === "3" ? "border-yellow-500" :
17- year === "4" ? "border-red-500" :
18- "border-gray-300" ;
19-
14+ year === '1'
15+ ? 'border-green-500'
16+ : year === '2'
17+ ? 'border-blue-500'
18+ : year === '3'
19+ ? 'border-yellow-500'
20+ : year === '4'
21+ ? 'border-red-500'
22+ : 'border-gray-300' ;
2023
2124 return (
2225 < div
@@ -27,7 +30,9 @@ export default function CourseNode({ data }: NodeProps<CourseNodeType>) {
2730 < p className = "truncate text-sm font-bold leading-tight text-gray-900" >
2831 { data . code }
2932 </ p >
30- < p className = "truncate text-xs leading-tight text-gray-500" > { data . title } </ p >
33+ < p className = "truncate text-xs leading-tight text-gray-500" >
34+ { data . title }
35+ </ p >
3136 < Handle type = "source" position = { Position . Bottom } />
3237 </ div >
3338 ) ;
You can’t perform that action at this time.
0 commit comments