From d0a1cafc1bd9b253a5f451d5e3524ad8da215142 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 17 Oct 2017 19:40:30 +0300 Subject: [PATCH] LandingPage uses correct proptype validation (global duck) --- src/containers/LandingPage/LandingPage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/containers/LandingPage/LandingPage.js b/src/containers/LandingPage/LandingPage.js index 7c08ac99..7ed5101f 100644 --- a/src/containers/LandingPage/LandingPage.js +++ b/src/containers/LandingPage/LandingPage.js @@ -4,6 +4,7 @@ import { compose } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { injectIntl, intlShape } from 'react-intl'; +import * as propTypes from '../../util/propTypes'; import { isScrollingDisabled } from '../../ducks/UI.duck'; import config from '../../config'; import { Page, HeroSection } from '../../components'; @@ -60,11 +61,11 @@ LandingPageComponent.defaultProps = { logoutError: null, }; -const { bool, instanceOf, object } = PropTypes; +const { bool, object } = PropTypes; LandingPageComponent.propTypes = { - authInfoError: instanceOf(Error), - logoutError: instanceOf(Error), + authInfoError: propTypes.error, + logoutError: propTypes.error, scrollingDisabled: bool.isRequired, // from withRouter