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 57f9c81 commit 711c24c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file not shown.
5 changes: 3 additions & 2 deletions frontend/src/components/search/SearchResultsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ 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"]
if (loading) gridRowClasses.push("opacity-50");
return (
<div className="grid-row">
<h2
className="tablet-lg:grid-col-fill margin-top-5 tablet-lg:margin-top-2 tablet-lg:margin-bottom-0"
style={{ opacity: loading ? 0.5 : 1 }}
className={gridRowClasses.join(" ")}
>
{total && <>{total} Opportunities</>}
</h2>
Expand Down

0 comments on commit 711c24c

Please sign in to comment.