Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created March 30, 2020 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericelliott/40a44297fa66d30fe861b9260f81d749 to your computer and use it in GitHub Desktop.
Save ericelliott/40a44297fa66d30fe861b9260f81d749 to your computer and use it in GitHub Desktop.
pageHOC
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