mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 07:14:19 -07:00
* initial commit of sprint 4 explore page * adds styling on HowYouCanHelp module * troubleshooting li element on deployed URL removing local bullet styles * removing unused styles * recreating HowYouCanHelp * explicit list el styles * adds bullets back in * fixes tooltip style and alert padding * componentize MapLegend * fix links * inital intl and unit tests * adds trusswork tooltip for comparison * updates based on various feedback and disucssions: - removes react-tooltip - placeholder trussworks tooltip - removes download packet component - intl on HowYouCanHelp - updates MapLegend tests - add initial cy test on ExploreTool page * removes bold on alert * PR feedback: - removes location from J40Alert - localizes `COLOR KEY` * adds intl to constants file * modifies download zip URL to new S3 location * removes location depedencies on Alerts * add localization for HowYouCanHelp
24 lines
530 B
TypeScript
24 lines
530 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 />
|
|
<main id={'main-content'}>
|
|
{children}
|
|
</main>
|
|
<J40Footer/>
|
|
</URLFlagProvider>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|