From 7cc9f788c089b3d5ebed96b1a7e95d6f2b9450a8 Mon Sep 17 00:00:00 2001 From: Pavel Lang Date: Tue, 26 Apr 2016 12:25:22 +0200 Subject: [PATCH 1/2] Fix ProvideIntl PropTypes validation --- src/components/Provide/IntlProvider.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Provide/IntlProvider.js b/src/components/Provide/IntlProvider.js index 12985004b..692d25b7b 100644 --- a/src/components/Provide/IntlProvider.js +++ b/src/components/Provide/IntlProvider.js @@ -1,13 +1,11 @@ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; -import { IntlProvider, intlShape } from 'react-intl'; +import { IntlProvider } from 'react-intl'; function ProvideIntl({ intl, children }) { return ( {children} @@ -16,7 +14,7 @@ function ProvideIntl({ intl, children }) { } ProvideIntl.propTypes = { - intl: intlShape, + ...IntlProvider.propTypes, children: PropTypes.element.isRequired, }; From 3bad291b4008cb2111c68547153608b2b5671b1d Mon Sep 17 00:00:00 2001 From: Pavel Lang Date: Tue, 26 Apr 2016 12:30:25 +0200 Subject: [PATCH 2/2] Remove unnecessary line --- src/components/Provide/IntlProvider.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Provide/IntlProvider.js b/src/components/Provide/IntlProvider.js index 692d25b7b..b110fd128 100644 --- a/src/components/Provide/IntlProvider.js +++ b/src/components/Provide/IntlProvider.js @@ -19,6 +19,5 @@ ProvideIntl.propTypes = { }; export default connect(state => ({ - runtime: state.runtime, intl: state.intl, }))(ProvideIntl);