Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update SearchResultsHeader.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Aug 6, 2024
1 parent 711c24c commit 78da679
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions frontend/src/components/search/SearchResultsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ export default function SearchResultsHeader({
}) {
const { totalResults } = useContext(QueryContext);
const total = totalFetchedResults || totalResults;
const gridRowClasses = ["tablet-lg:grid-col-fill", "margin-top-5", "tablet-lg:margin-top-2", "tablet-lg:margin-bottom-0"]
const gridRowClasses = [
"tablet-lg:grid-col-fill",
"margin-top-5",
"tablet-lg:margin-top-2",
"tablet-lg:margin-bottom-0",
];
if (loading) gridRowClasses.push("opacity-50");
return (
<div className="grid-row">
<h2
className={gridRowClasses.join(" ")}
>
<h2 className={gridRowClasses.join(" ")}>
{total && <>{total} Opportunities</>}
</h2>
<div className="tablet-lg:grid-col-auto">
Expand Down

0 comments on commit 78da679

Please sign in to comment.