From 88519e3c5b55bd4c6b8d8d79bd68d2cc67381764 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 15 May 2026 06:45:25 -0400 Subject: [PATCH] Drop duplicate PolicyEngineHeader (now provided by PolicyEngineShell) The PolicyEngineShell wrap added in the previous PR already renders the PolicyEngine site header. The in-page PolicyEngineHeader stacked a second copy on top. Remove the duplicate render and delete the now unused component. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/app/layout.tsx | 3 -- .../src/components/PolicyEngineHeader.tsx | 37 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 frontend/src/components/PolicyEngineHeader.tsx diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index 0a6cbc4..008eace 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -3,8 +3,6 @@ import "@policyengine/ui-kit/styles.css"; import type { Metadata, Viewport } from 'next'; import './globals.css'; -import PolicyEngineHeader from '@/components/PolicyEngineHeader'; - const SITE_URL = 'https://us-state-eitcs-ctcs.vercel.app'; const TITLE = 'State Tax Credits Impact | PolicyEngine'; const DESCRIPTION = @@ -121,7 +119,6 @@ export default function RootLayout({ - {children} diff --git a/frontend/src/components/PolicyEngineHeader.tsx b/frontend/src/components/PolicyEngineHeader.tsx deleted file mode 100644 index 76bd157..0000000 --- a/frontend/src/components/PolicyEngineHeader.tsx +++ /dev/null @@ -1,37 +0,0 @@ -"use client"; - -import { Header } from "@policyengine/ui-kit"; - -const navItems = [ - { label: "Research", href: "https://policyengine.org/us/research" }, - { label: "Model", href: "https://policyengine.org/us/model" }, - { label: "API", href: "https://policyengine.org/us/api" }, - { - label: "About", - href: "https://policyengine.org/us/team", - children: [ - { label: "Team", href: "https://policyengine.org/us/team" }, - { label: "Supporters", href: "https://policyengine.org/us/supporters" }, - ], - }, - { label: "Donate", href: "https://policyengine.org/us/donate" }, -]; - -const countries = [ - { id: "us", label: "United States" }, - { id: "uk", label: "United Kingdom" }, -]; - -export default function PolicyEngineHeader() { - return ( -
{ - window.location.href = `https://policyengine.org/${countryId}`; - }} - /> - ); -}