Skip to content

Commit

Permalink
feat(notice-board): import Header client side to support localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Sep 20, 2023
1 parent e6a16e7 commit 6d75589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion wrappers/fullscreen/component.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { useRouter } from 'next/router';
import dynamic from 'next/dynamic';
import { Loader, MediaContextProvider } from '@worldresources/gfw-components';
import cx from 'classnames';

Expand All @@ -10,10 +11,11 @@ import { useSetLanguage } from 'utils/lang';
import Head from 'wrappers/head';
import Cookies from 'wrappers/cookies';

import Header from 'components/header';
import ContactUsModal from 'components/modals/contact-us';
import ErrorMessage from 'components/error-message';

const Header = dynamic(() => import('components/header'), { ssr: false });

const FullScreenWrapper = ({
children,
title,
Expand Down
4 changes: 3 additions & 1 deletion wrappers/page/component.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { useRouter } from 'next/router';
import dynamic from 'next/dynamic';
import { Loader, MediaContextProvider } from '@worldresources/gfw-components';
import cx from 'classnames';

Expand All @@ -10,11 +11,12 @@ import { useSetLanguage } from 'utils/lang';
import Head from 'wrappers/head';
import Cookies from 'wrappers/cookies';

import Header from 'components/header';
import Footer from 'components/footer';
import ContactUsModal from 'components/modals/contact-us';
import ErrorMessage from 'components/error-message';

const Header = dynamic(() => import('components/header'), { ssr: false });

const PageWrapper = ({
children,
showFooter,
Expand Down

0 comments on commit 6d75589

Please sign in to comment.