Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokok1996 committed Nov 5, 2021
2 parents 1d7f5f1 + 5f6589f commit 56116e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pwa/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import React, {useEffect} from "react";
import "@utrecht/design-tokens/dist/theme/index.css";
import Layout from "./src/components/common/layout";
import {UrlContextWrapper} from "./src/context/urlContext";
import {Helmet} from "react-helmet";

export const wrapRootElement = ({ element }) => (
<UrlContextWrapper>
<div className="utrecht-document utrecht-theme">
{element}
</div>
<Helmet>
<script src="https://unpkg.com/@nl-design-system-unstable/theme-switcher" />
</Helmet>
</UrlContextWrapper>
)
2 changes: 2 additions & 0 deletions pwa/src/components/common/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function Layout({ children }) {
return (
<>
<ThemeProvider theme={theme}>
<div className="utrecht-document utrecht-theme">
<div className="utrecht-page">
<Header/>
<MainMenu />
Expand All @@ -34,6 +35,7 @@ export default function Layout({ children }) {
</div>
<Footer />
</div>
</div>
</ThemeProvider>
</>
)
Expand Down

0 comments on commit 56116e7

Please sign in to comment.