Skip to content

Commit 58a5441

Browse files
author
hselvaka
committed
Fix formatting
1 parent 0d0848e commit 58a5441

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/components/CourseNode.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)