Hide footer on detail pages

This commit is contained in:
Tom Raithel
2017-02-21 23:02:21 +01:00
parent 33b4d112a0
commit 71e33276be

View File

@@ -1,7 +1,12 @@
import React from 'react';
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 (
<Branding
logoContent={<img src="/assets/logo.svg"/>}