fix(client): add footer on learn home (#38830)

This commit is contained in:
Mrugesh Mohapatra
2020-05-19 12:50:15 +05:30
committed by GitHub
parent bfe76794c0
commit 421bbdefbe

View File

@ -22,7 +22,10 @@ export default function layoutSelector({ element, props }) {
if (/^\/guide(\/.*)*/.test(pathname)) { if (/^\/guide(\/.*)*/.test(pathname)) {
console.log('Hitting guide for some reason. Need a redirect.'); console.log('Hitting guide for some reason. Need a redirect.');
} }
if (/^\/learn(\/.*)*/.test(pathname)) { if (
/^\/learn(\/.*)*/.test(pathname) &&
false === /^\/learn\/$|^\/learn$/.test(pathname)
) {
return ( return (
<DefaultLayout pathname={pathname} showFooter={false}> <DefaultLayout pathname={pathname} showFooter={false}>
{element} {element}