fix: removed all guide bits from gatsby

This commit is contained in:
Mrugesh Mohapatra
2019-07-25 13:53:42 +05:30
committed by mrugesh
parent 7bc6367d68
commit 0124e7556d
27 changed files with 6 additions and 1493 deletions

View File

@@ -3,11 +3,8 @@ import PropTypes from 'prop-types';
import {
CertificationLayout,
DefaultLayout,
GuideLayout
DefaultLayout
} from '../../src/components/layouts';
// eslint-disable-next-line max-len
import GuideNavMenu from '../../src/components/layouts/components/guide/NavMenu';
import FourOhFourPage from '../../src/pages/404';
export default function layoutSelector({ element, props }) {
@@ -28,11 +25,7 @@ export default function layoutSelector({ element, props }) {
return <CertificationLayout>{element}</CertificationLayout>;
}
if (/^\/guide(\/.*)*/.test(pathname)) {
return (
<DefaultLayout navigationMenu={<GuideNavMenu />} pathname={pathname}>
<GuideLayout>{element}</GuideLayout>
</DefaultLayout>
);
console.log('Hitting guide for some reason. Need a redirect.');
}
if (/^\/learn(\/.*)*/.test(pathname)) {
return (