diff --git a/.env b/.env index 2242b2db2..b160b8f44 100644 --- a/.env +++ b/.env @@ -14,5 +14,7 @@ GOOGLE_FORM = 'https://docs.google.com/forms/d/e/1FAIpQLSfGcd3FDsM3kQIOVKjzdPn4f SHOW_CONFIGURABLE_COLOR_MAP = 'TRUE' +# Enables the refactor page header component that uses the USWDS design system ENABLE_USWDS_PAGE_HEADER = 'TRUE' +# Enables the refactor page footer component that uses the USWDS design system ENABLE_USWDS_PAGE_FOOTER = 'TRUE' diff --git a/app/scripts/components/common/layout-root/index.tsx b/app/scripts/components/common/layout-root/index.tsx index 04c7bbe8c..50c32547d 100644 --- a/app/scripts/components/common/layout-root/index.tsx +++ b/app/scripts/components/common/layout-root/index.tsx @@ -113,7 +113,7 @@ function LayoutRoot(props: { children?: ReactNode }) { primarySection={{ footerPrimaryContactItems, footerPrimaryNavItems - }} // @ts-expect-error: NEED TO DELETE + }} hideFooter={hideFooter} /> ) : ( diff --git a/app/scripts/components/common/page-footer/index.tsx b/app/scripts/components/common/page-footer/index.tsx index e294605f3..72a64ca73 100644 --- a/app/scripts/components/common/page-footer/index.tsx +++ b/app/scripts/components/common/page-footer/index.tsx @@ -12,15 +12,15 @@ import './styles.scss'; interface PageFooterProps { primarySection: any; settings: any; - hidefooter?: boolean; + hideFooter?: boolean; } -//TODO: clean up PageFooterProps +//TODO: clean up PageFooterProps, Unexpected any. Specify a different interface. + export default function PageFooter({ settings, primarySection, - hidefooter + hideFooter }: PageFooterProps) { - // console.log(settings, primarySection, hidefooter); const returnToTopButton = () => { return (