diff --git a/src/gatsby/src/components/HTMLArea.js b/src/gatsby/src/components/HTMLArea.js deleted file mode 100644 index 5408d330a..000000000 --- a/src/gatsby/src/components/HTMLArea.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from "react" -import { usePreRenderVideo } from "../utils/usePreRenderVideo" - -export default function HTMLArea(props) { - const { htmlContent } = usePreRenderVideo(props.children) - - if (!props.isVisible) { - return null; - } - return ( -
- ) -} \ No newline at end of file diff --git a/src/gatsby/src/components/advisories/advisoryAlerts.js b/src/gatsby/src/components/advisories/advisoryAlerts.js deleted file mode 100644 index d0f59f352..000000000 --- a/src/gatsby/src/components/advisories/advisoryAlerts.js +++ /dev/null @@ -1,3 +0,0 @@ - -// TODO create helper function to store common alert data (e.g. colors) -// to be used by other advisory components \ No newline at end of file diff --git a/src/gatsby/src/components/advisories/advisoryCard.js b/src/gatsby/src/components/advisories/advisoryCard.js index 19a9a5143..b0e44b186 100644 --- a/src/gatsby/src/components/advisories/advisoryCard.js +++ b/src/gatsby/src/components/advisories/advisoryCard.js @@ -5,7 +5,7 @@ import Col from "react-bootstrap/Col" import Badge from "react-bootstrap/Badge" import { parseJSON, format } from "date-fns" -import HTMLArea from "../HTMLArea" +import HtmlContent from "../htmlContent" import AdvisoryDate from "./advisoryDate" import redAlertIcon from "../../images/park/red-alert.svg" import yellowAlertIcon from "../../images/park/yellow-alert.svg" @@ -120,6 +120,7 @@ const AdvisoryCard = ({ advisory, parkInfoHash }) => { return (