Skip to content

Commit

Permalink
feat: add UCI specific no courses found GE Ia, Ib
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Dec 28, 2023
1 parent f530f98 commit 337f7df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -311,6 +310,8 @@ const Search = () => {
courses,
filterValues,
)}
university={university}
ge={ge}
/>
)}
</div>
Expand Down
14 changes: 11 additions & 3 deletions components/search/searchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down Expand Up @@ -138,8 +140,14 @@ const SearchResults = (props: SearchResultsProps) => {
className="flex w-[500px] justify-center"
/>
</div>
<div className="flex justify-center">
No results found...
<div className="flex w-full flex-col justify-center gap-y-2 text-center">
<p>No results found...</p>
{university == "University of California, Irvine" &&
(ge.includes("Ia") || ge.includes("Ib")) ? (
<p className="text-sm text-zinc-500">
(GE Ia and Ib are not transferable at UCI)
</p>
) : null}
</div>
</div>
)}
Expand Down

0 comments on commit 337f7df

Please sign in to comment.