From 20ab286db1b8a08f3fb46943b6b8c2cf5258b07d Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Mon, 10 Mar 2025 15:21:56 +0000 Subject: [PATCH] fix(Footer): make footer optional --- packages/web/src/components/Layout/Footer/index.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/web/src/components/Layout/Footer/index.jsx b/packages/web/src/components/Layout/Footer/index.jsx index 759f199c..3a133a7d 100644 --- a/packages/web/src/components/Layout/Footer/index.jsx +++ b/packages/web/src/components/Layout/Footer/index.jsx @@ -19,6 +19,8 @@ const LayoutFooter = () => { const { data: config, isPending: isConfigPending } = useAutomatischConfig(); const formatMessage = useFormatMessage(); + if (config?.data.enableFooter !== true) return null; + const links = [ { key: 'docs', @@ -48,9 +50,6 @@ const LayoutFooter = () => { }, , ]; - - if (config.data.enableFooter !== true) return null; - return (