From 620606d19e411a066b4522eee2e6e450807d4968 Mon Sep 17 00:00:00 2001 From: Jake Wheeler Date: Thu, 24 Oct 2024 14:52:43 -0400 Subject: [PATCH] make basePath the only constant for now --- src/app/components/UsaBanner.tsx | 7 ++++++- src/app/utils/constants.ts | 5 +---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/components/UsaBanner.tsx b/src/app/components/UsaBanner.tsx index 0738f4c..edeeb4c 100644 --- a/src/app/components/UsaBanner.tsx +++ b/src/app/components/UsaBanner.tsx @@ -11,10 +11,15 @@ import { MediaBlockBody, Icon, } from '@trussworks/react-uswds'; -import { dotGovIcon, flagImg, httpsIcon } from '../utils/constants'; +import { basePath } from '../utils/constants'; export default function USABanner() { const [isOpen, setIsOpen] = useState(false); + + const flagImg = `${basePath}/images/us-flag.png`; + const dotGovIcon = `${basePath}/images/us-gov-icon.svg`; + const httpsIcon = `${basePath}/images/https-icon.svg`; + return (