feat: simplify landing page
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
5dd8044035
commit
9ff7bf5801
@ -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>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user