Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
avertrees committed Dec 3, 2024
1 parent 33f09c3 commit 1b8de63
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/components/featuredItem/campaignHero.tsx
Original file line number Diff line number Diff line change
@@ -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<FeaturedItemDataType>(
featuredItemData || defaultFeaturedItemResponse
Expand Down

0 comments on commit 1b8de63

Please sign in to comment.