Skip to content

Commit

Permalink
Merge pull request #2143 from anth-volk/feat/us-election-banner
Browse files Browse the repository at this point in the history
US election banner
  • Loading branch information
MaxGhenis authored Oct 30, 2024
2 parents c73a0b5 + e99ce72 commit 515ef5f
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 205 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ import HomeTransparency from "./home/HomeTransparency";
import Footer from "../layout/Footer";
import HomeQuoteCarousel from "./home/HomeQuoteCarousel";
import { Helmet } from "react-helmet";
import HomeElectionBanner from "./home/HomeElectionBanner.jsx";
import useCountryId from "../hooks/useCountryId";

export default function Home() {
const countryId = useCountryId();
return (
<>
<Helmet>
<title>PolicyEngine</title>
</Helmet>
<div>
<Header />
{countryId === "us" && <HomeElectionBanner />}
<HomeLanding />
<HomeUsedBy />
<HomeBlogPreview />
Expand Down
Loading

0 comments on commit 515ef5f

Please sign in to comment.