feat: simplify landing page

This commit is contained in:
Ahmad Abdolsaheb
2019-09-01 17:20:53 +03:00
committed by Mrugesh Mohapatra
parent 5dd8044035
commit 9ff7bf5801
24 changed files with 350 additions and 1061 deletions

View File

@ -11,13 +11,6 @@ export default function layoutSelector({ element, props }) {
const {
location: { pathname }
} = props;
if (pathname === '/') {
return (
<DefaultLayout landingPage={true} pathname={pathname}>
{element}
</DefaultLayout>
);
}
if (element.type === FourOhFourPage) {
return <DefaultLayout pathname={pathname}>{element}</DefaultLayout>;
}