mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-29 07:51:16 -07:00
Display SurveyMonkey survey (#867)
* Display SurveyMonkey survey via FAB - add Floating Action Button lib: react-tiny-fab - enable Internal Page Survey with ?flags=ips - update snapshots * Add location to state - update snapshots * Fix build error - remove react-tiny-fab - remove location state - create custom FAB component - remove feature flag - update snapshots * Add SurveyFab snapshot test * Remove embedded survey page - add intl * Remove conditional render logic on SurveyFab * Remove cypress test around starting map via URL - increase component code coverage to 83%
This commit is contained in:
parent
b0dbc90064
commit
54bdda0f02
15 changed files with 161 additions and 30 deletions
|
@ -3,6 +3,7 @@ import J40Header from './J40Header';
|
|||
import J40Footer from './J40Footer';
|
||||
import {URLFlagProvider} from '../contexts/FlagContext';
|
||||
import {Helmet} from 'react-helmet';
|
||||
import SurveyFab from './SurveyFab';
|
||||
|
||||
interface ILayoutProps {
|
||||
children: ReactNode,
|
||||
|
@ -17,16 +18,20 @@ const Layout = ({children, location, title}: ILayoutProps) => {
|
|||
<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}
|
||||
<SurveyFab />
|
||||
</main>
|
||||
<J40Footer/>
|
||||
</URLFlagProvider>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue