fix(Footer): make footer optional
This commit is contained in:
@@ -19,6 +19,8 @@ const LayoutFooter = () => {
|
|||||||
const { data: config, isPending: isConfigPending } = useAutomatischConfig();
|
const { data: config, isPending: isConfigPending } = useAutomatischConfig();
|
||||||
const formatMessage = useFormatMessage();
|
const formatMessage = useFormatMessage();
|
||||||
|
|
||||||
|
if (config?.data.enableFooter !== true) return null;
|
||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
{
|
{
|
||||||
key: 'docs',
|
key: 'docs',
|
||||||
@@ -48,9 +50,6 @@ const LayoutFooter = () => {
|
|||||||
},
|
},
|
||||||
,
|
,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (config.data.enableFooter !== true) return null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box mt="auto" position="sticky" bottom={0}>
|
<Box mt="auto" position="sticky" bottom={0}>
|
||||||
<Box bgcolor="common.white" mt={4}>
|
<Box bgcolor="common.white" mt={4}>
|
||||||
|
|||||||
Reference in New Issue
Block a user