mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 21:04:18 -07:00
* Move survey button to header - remove SurveyFab component as it's no longer a FAB - place button in heading - add tests - add pageStyles module * Add retry and timeout to failing test * Move survey button to bottom of page * Fix surveyButton failing a11y - udpate snapshots * Align survey button to Contact nav link
41 lines
974 B
TypeScript
41 lines
974 B
TypeScript
import React, {ReactNode} from 'react';
|
|
import {Helmet} from 'react-helmet';
|
|
|
|
import {URLFlagProvider} from '../contexts/FlagContext';
|
|
|
|
import J40Header from './J40Header';
|
|
import J40Footer from './J40Footer';
|
|
interface ILayoutProps {
|
|
children: ReactNode,
|
|
location: Location,
|
|
title: string,
|
|
}
|
|
|
|
const Layout = ({children, location, title}: ILayoutProps) => {
|
|
// @ts-ignore
|
|
return (
|
|
<>
|
|
<Helmet defer={false}>
|
|
<html lang="en"/>
|
|
<title>{title}</title>
|
|
|
|
{/* DAP Tag */}
|
|
<script async
|
|
type="text/javascript"
|
|
id="_fed_an_ua_tag"
|
|
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DOI&sitetopic=cejst&enhlink=true">
|
|
</script>
|
|
</Helmet>
|
|
|
|
<URLFlagProvider location={location}>
|
|
<J40Header />
|
|
<main id={'main-content'}>
|
|
{children}
|
|
</main>
|
|
<J40Footer/>
|
|
</URLFlagProvider>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|