Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created August 30, 2020 02:54
Show Gist options
  • Save ericelliott/237ae2e0c012b1f0f6852d6a2a975681 to your computer and use it in GitHub Desktop.
Save ericelliott/237ae2e0c012b1f0f6852d6a2a975681 to your computer and use it in GitHub Desktop.
pageHOC for EricElliottJS.com
import { compose } from 'lodash/fp';
import withFeatures from './with-features';
import withEnv from './with-env';
import withLoader from './with-loader';
import withCoupon from './with-coupon';
import withLayout from './with-layout';
import withAuth from './with-auth';
import { withRouter } from 'next/router';
import withMagicLink from '../features/ethereum-authentication/with-magic-link';
export default compose(
withEnv,
withAuth,
withLoader,
withLayout({ showFooter: true }),
withFeatures,
withRouter,
withCoupon,
withMagicLink,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment