Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 1, 2023
1 parent a72eeb2 commit b2cd985
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 b2cd985

Please sign in to comment.