mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-29 07:51:16 -07:00
* 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
24 lines
549 B
TypeScript
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;
|