Addresses #210, aside should not appear on map page (#211)

This commit is contained in:
Nat Hillard 2021-06-23 12:47:31 -04:00 committed by GitHub
commit 922740a4cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ interface ILayoutProps {
}
const Layout = ({children, location}: ILayoutProps) => {
const isWidthFullPage = location.pathname.endsWith('/cejst');
const isWidthFullPage = location.pathname.match(/cejst\/?/);
const conditionalAside = isWidthFullPage ? <></> : <J40Aside/>;
const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' :
'desktop:grid-col-9';