From e2afeed4acbdfb008359f3b9a9f6a5f293622b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alice=20R=C3=BChl?= Date: Wed, 11 Dec 2024 12:13:52 +0100 Subject: [PATCH 1/3] Fix hideFooter prop name --- app/scripts/components/common/layout-root/index.tsx | 2 +- app/scripts/components/common/page-footer/index.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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 (