Skip to content

Commit

Permalink
Merge pull request #149 from ConductionNL/feature/XW-103/Markdown-page
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
remko48 authored Nov 1, 2023
2 parents dc2d0bb + b2cd985 commit 40b7d09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pwa/src/templates/templateParts/footer/FooterTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ export const FooterTemplate: React.FC = () => {
const getFooterContent = _useFooterContent.getContent();

// For production
// React.useEffect(() => {
// setFooterContent(getFooterContent.data);
// }, [getFooterContent]);
React.useEffect(() => {
setFooterContent(getFooterContent.data);
}, [getFooterContent]);

// For development
React.useEffect(() => {
const data = require("./FooterContent.json");
setFooterContent(data);
}, []);
// React.useEffect(() => {
// const data = require("./FooterContent.json");
// setFooterContent(data);
// }, []);

React.useEffect(() => {
if (!process.env.GATSBY_FOOTER_CONTENT) return;
Expand Down

0 comments on commit 40b7d09

Please sign in to comment.