Merge pull request #2389 from automatisch/fix-footer-in-community

fix(Footer): make footer optional
This commit is contained in:
Ali BARIN
2025-03-10 16:30:27 +01:00
committed by GitHub

View File

@@ -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 (
<Box mt="auto" position="sticky" bottom={0}>
<Box bgcolor="common.white" mt={4}>