Skip to content

Commit 8dcc61f

Browse files
committed
linted and fixed
1 parent 95991c1 commit 8dcc61f

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

src/pages/Home.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import Footer from "../layout/Footer";
1010
import HomeQuoteCarousel from "./home/HomeQuoteCarousel";
1111
import { Helmet } from "react-helmet";
1212

13-
import UK2024AutumnBudgetBanner from "./home/banners/UK2024AutumnBudgetBanner";
14-
import US2024ElectionBanner from "./home/banners/US2024ElectionBanner.jsx";
1513
import OBBBAHouseholdBanner from "./home/banners/OBBBAHouseholdExplorerBanner.jsx";
1614
import useCountryId from "../hooks/useCountryId";
1715

@@ -24,7 +22,7 @@ export default function Home() {
2422
</Helmet>
2523
<div>
2624
<Header />
27-
{countryId === "us" && <OBBBAHouseholdBanner />}
25+
{countryId === "us" && <OBBBAHouseholdBanner />}
2826
<HomeLanding />
2927
<HomeUsedBy />
3028
<HomeBlogPreview />

src/pages/home/banners/OBBBAHouseholdExplorerBanner.jsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ import LinkButton from "../../../controls/LinkButton";
22
import style from "../../../style";
33
import finalReconciliationImg from "../../../images/posts/final-2025-reconciliation-tax.png";
44
import useDisplayCategory from "../../../hooks/useDisplayCategory";
5-
import { useWindowWidth } from "../../../hooks/useWindow";
6-
75

86
export default function OBBBAHouseholdBanner() {
97
const dC = useDisplayCategory();
10-
const windowWidth = useWindowWidth();
118

129
const title = "Explore PolicyEngine's coverage of OBBBA";
1310
const subtitle =
@@ -17,11 +14,11 @@ export default function OBBBAHouseholdBanner() {
1714
const ctaLink = "/us/obbba-household-explorer";
1815
const ariaLabel =
1916
"Illustration of the U.S. Capitol building, representing federal policy context for household impact analysis. ";
20-
// "Courtesy of Tim Mossholder, https://www.pexels.com/photo/flag-of-the-usa-on-a-pole-1709929/";
17+
// "Courtesy of Tim Mossholder, https://www.pexels.com/photo/flag-of-the-usa-on-a-pole-1709929/";
2118

22-
const shouldUseShortTitle =
23-
(dC !== "mobile" && windowWidth < 1150 && windowWidth >= 950) ||
24-
(dC === "mobile" && windowWidth < 600);
19+
// const shouldUseShortTitle =
20+
// (dC !== "mobile" && windowWidth < 1150 && windowWidth >= 950) ||
21+
// (dC === "mobile" && windowWidth < 600);
2522

2623
if (dC === "mobile") {
2724
return (
@@ -93,8 +90,7 @@ export default function OBBBAHouseholdBanner() {
9390
gap: "16px",
9491
height: "100%",
9592
}}
96-
>
97-
</div>
93+
></div>
9894
</div>
9995
);
10096
}

0 commit comments

Comments
 (0)