Skip to content

Commit

Permalink
make basePath the only constant for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewheeler committed Oct 24, 2024
1 parent c111b81 commit 620606d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/app/components/UsaBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Banner aria-label="Official website of the state department of something specific">
<BannerHeader
Expand Down
5 changes: 1 addition & 4 deletions src/app/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
const basePath = '/dibbs-site';
const flagImg = `${basePath}/images/us-flag.png`;
const dotGovIcon = `${basePath}/images/us-gov-icon.svg`;
const httpsIcon = `${basePath}/images/https-icon.svg`;

export { basePath, flagImg, dotGovIcon, httpsIcon };
export { basePath };

0 comments on commit 620606d

Please sign in to comment.