Hide footer on detail pages
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Branding from './Branding';
|
import Branding from './Branding';
|
||||||
|
import { getItemPageNames } from '../../common/config';
|
||||||
|
|
||||||
|
export default function Footer({ items, pageName }) {
|
||||||
|
if (getItemPageNames(items).includes(pageName)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
export default function Footer() {
|
|
||||||
return (
|
return (
|
||||||
<Branding
|
<Branding
|
||||||
logoContent={<img src="/assets/logo.svg"/>}
|
logoContent={<img src="/assets/logo.svg"/>}
|
||||||
|
|||||||
Reference in New Issue
Block a user