fix(certs): remove footer and nav from certs (#35333)

* fix(certs): remove footer and nav from certs

* fix: revert spacing on cert
This commit is contained in:
mrugesh mohapatra
2019-02-22 20:36:47 +05:30
committed by Ahmad Abdolsaheb
parent 163540f8fc
commit 293e58cc23
4 changed files with 31 additions and 4 deletions

View File

@ -5,8 +5,11 @@ import { Provider } from 'react-redux';
import { createStore } from './src/redux/createStore';
import AppMountNotifier from './src/components/AppMountNotifier';
import GuideNavContextProvider from './src/contexts/GuideNavigationContext';
import DefaultLayout from './src/components/layouts/Default';
import GuideLayout from './src/components/layouts/Guide';
import {
CertificationLayout,
DefaultLayout,
GuideLayout
} from './src/components/layouts';
const store = createStore();
@ -35,6 +38,9 @@ export const wrapPageElement = ({ element, props }) => {
</DefaultLayout>
);
}
if (/^\/certification(\/.*)*/.test(pathname)) {
return <CertificationLayout>{element}</CertificationLayout>;
}
if (/^\/guide(\/.*)*/.test(pathname)) {
return (
<DefaultLayout>