From 337f7dffc910d73ac424d088f639924c880bcb84 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Thu, 28 Dec 2023 13:39:11 -0800 Subject: [PATCH] feat: add UCI specific no courses found GE Ia, Ib --- components/search/search.tsx | 3 ++- components/search/searchResults.tsx | 14 +++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/components/search/search.tsx b/components/search/search.tsx index f0089d4..4b54db1 100644 --- a/components/search/search.tsx +++ b/components/search/search.tsx @@ -12,7 +12,6 @@ import SearchBlurb from "./blurb"; import { filterData } from "./filterUtils"; import { UNIVERSITY_GE } from "@/lib/constants"; -import * as gtag from "@/lib/gtag"; import { analyticsEnum, logAnalytics } from "@/lib/analytics"; export interface CollegeObject { @@ -311,6 +310,8 @@ const Search = () => { courses, filterValues, )} + university={university} + ge={ge} /> )} diff --git a/components/search/searchResults.tsx b/components/search/searchResults.tsx index d414006..525594e 100644 --- a/components/search/searchResults.tsx +++ b/components/search/searchResults.tsx @@ -5,10 +5,12 @@ import Tags from "./tags"; interface SearchResultsProps { results: CollegeObject[]; + university: string; + ge: string; } const SearchResults = (props: SearchResultsProps) => { - const { results } = props; + const { results, university, ge } = props; return ( <> @@ -138,8 +140,14 @@ const SearchResults = (props: SearchResultsProps) => { className="flex w-[500px] justify-center" /> -
- No results found... +
+

No results found...

+ {university == "University of California, Irvine" && + (ge.includes("Ia") || ge.includes("Ib")) ? ( +

+ (GE Ia and Ib are not transferable at UCI) +

+ ) : null}
)}