j40-cejst-2/client/src/components/layout.tsx
TomNUSDS 73a205dc48
Refactor layout (#486)
* Refactor to move `<DatasetContainer>` out of layout
* `<DatasetContainer>` is now in the methodology page. Starting the review there will help understand the motive for this change.
* Fixed 404 page which seems way out of date.
* Use row/col grid syntax
2021-08-09 08:04:24 -07:00

24 lines
549 B
TypeScript

import React, {ReactNode} from 'react';
import J40Header from './J40Header';
import J40Footer from './J40Footer';
import {URLFlagProvider} from '../contexts/FlagContext';
interface ILayoutProps {
children: ReactNode,
location: Location
}
const Layout = ({children, location}: ILayoutProps) => {
// @ts-ignore
return (
<URLFlagProvider location={location}>
<J40Header location={location}/>
<main id={'main-content'}>
{children}
</main>
<J40Footer/>
</URLFlagProvider>
);
};
export default Layout;