mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 04:24:19 -07:00
* integrate gherkin/cucumber w/ cypress - change cypress.json config from e2e back to standard integration - add cypress-cucumber-preprocessor - add integration test of about page * add a title to each page * add intl to the 404 page * Refactor explore tool page - add intl to static strings - replace component css with <Grid> layout * Add title to contact page * add intl to title of page * Add gherkin tests for nav to about page - navigate from any page to the about page - ensure each link has the title correct on that page
29 lines
666 B
TypeScript
29 lines
666 B
TypeScript
import React, {ReactNode} from 'react';
|
|
import J40Header from './J40Header';
|
|
import J40Footer from './J40Footer';
|
|
import {URLFlagProvider} from '../contexts/FlagContext';
|
|
import {Helmet} from 'react-helmet';
|
|
|
|
interface ILayoutProps {
|
|
children: ReactNode,
|
|
location: Location,
|
|
title: string,
|
|
}
|
|
|
|
const Layout = ({children, location, title}: ILayoutProps) => {
|
|
// @ts-ignore
|
|
return (
|
|
<>
|
|
<Helmet title={title} defer={false} />
|
|
<URLFlagProvider location={location}>
|
|
<J40Header />
|
|
<main id={'main-content'}>
|
|
{children}
|
|
</main>
|
|
<J40Footer/>
|
|
</URLFlagProvider>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|