From 9963d04121e734854fcd882c4910c9e178f3cfd8 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Thu, 28 Dec 2023 16:38:34 -0800 Subject: [PATCH] feat: remove lazyload --- components/search/searchResults.tsx | 185 ++++++++++++++-------------- 1 file changed, 93 insertions(+), 92 deletions(-) diff --git a/components/search/searchResults.tsx b/components/search/searchResults.tsx index 525594e..bcd55c1 100644 --- a/components/search/searchResults.tsx +++ b/components/search/searchResults.tsx @@ -18,116 +18,117 @@ const SearchResults = (props: SearchResultsProps) => { {results.length > 0 ? ( results.map((result: CollegeObject) => { return ( - +
-
-
-
- {result.sendingInstitution} -
-
- {result.courseCode}{" "} - {result.courseName} +
+
+ {result.sendingInstitution} +
+
+ {result.courseCode}{" "} + {result.courseName} +
+
+ {result.niceToHaves.length > 0 && ( +
+
+ {result.niceToHaves.map((tag) => ( + + ))}
- {result.niceToHaves.length > 0 && ( -
-
- {result.niceToHaves.map( - (tag) => ( - - ), - )} + )} +
+
+
+
+
+ Units +
+
+ {`${result.units} Units`}
- )} -
-
-
-
-
- Units -
-
- {`${result.units} Units`} -
+
+
+ Term
-
-
- Term -
-
- {result.term} -
+
+ {result.term}
-
-
- GEs -
-
- {result.fulfillsGEs.join( - ", ", - )} -
+
+
+
+ GEs
-
-
- Articulates To -
-
- {result.articulatesTo.join( - ", ", - )} -
+
+ {result.fulfillsGEs.join(", ")}
-
-
-
-
- Tuition:{" "} - - {`$${result.tuition.toFixed( - 2, - )}`} - -
-
- - +
+
+ Articulates To +
+
+ {result.articulatesTo.join( + ", ", + )} +
- +
+
+
+ Tuition:{" "} + + {`$${result.tuition.toFixed(2)}`} + +
+ +
+
+ // ); }) ) : (