From 1b8de63ca7b49fd9fb1755ebaa37f3e04ae5d416 Mon Sep 17 00:00:00 2001 From: Alessandra Vertrees Date: Tue, 3 Dec 2024 14:00:22 -0500 Subject: [PATCH] fix test --- app/src/components/featuredItem/campaignHero.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/components/featuredItem/campaignHero.tsx b/app/src/components/featuredItem/campaignHero.tsx index 450b19d3..827e8324 100644 --- a/app/src/components/featuredItem/campaignHero.tsx +++ b/app/src/components/featuredItem/campaignHero.tsx @@ -1,17 +1,14 @@ import { Hero } from "@nypl/design-system-react-components"; -import { useEffect, useState } from "react"; +import { useState } from "react"; import CampaignHeroSubText from "./campaignHeroSubText"; import CampaignHeroHeading from "./campaignHeroHeading"; import CampaignHeroLoading from "./campaignHeroLoading"; import defaultFeaturedItem from "../../data/defaultFeaturedItemData"; -import appConfig from "../../../../appConfig"; import { FeaturedItemDataType } from "../../types/FeaturedItemDataType"; import React from "react"; -import { ENV_KEY } from "../../types/EnvironmentType"; const CampaignHero = ({ featuredItemData }) => { - const defaultFeaturedItemResponse = - defaultFeaturedItem[appConfig["environment"] as ENV_KEY]; + const defaultFeaturedItemResponse = defaultFeaturedItem; const [data, setData] = useState( featuredItemData || defaultFeaturedItemResponse