fix(client): add footer on learn home (#38830)
This commit is contained in:
committed by
GitHub
parent
bfe76794c0
commit
421bbdefbe
@ -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}
|
||||||
|
Reference in New Issue
Block a user