Created
March 30, 2020 23:58
-
-
Save ericelliott/40a44297fa66d30fe861b9260f81d749 to your computer and use it in GitHub Desktop.
pageHOC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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