From b70265fd14728b1872c18e7652c32bbaf68a0225 Mon Sep 17 00:00:00 2001 From: Iurii Smuglov Date: Thu, 8 Jun 2017 12:34:56 +0300 Subject: [PATCH 1/2] Update index.js --- src/index.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/index.js b/src/index.js index 596e118..b2c5d68 100644 --- a/src/index.js +++ b/src/index.js @@ -8,6 +8,7 @@ import React from 'react'; import countryData from './country_data.js'; import classNames from 'classnames'; import ReactDOM from 'react-dom'; +import PropTypes from 'prop-types' let allCountries = countryData.allCountries; @@ -569,15 +570,15 @@ ReactPhoneInput.defaultProps = { }; ReactPhoneInput.propTypes = { - value: React.PropTypes.string, - autoFormat: React.PropTypes.bool, - defaultCountry: React.PropTypes.string, - onlyCountries: React.PropTypes.arrayOf(React.PropTypes.string), - preferredCountries: React.PropTypes.arrayOf(React.PropTypes.string), - onChange: React.PropTypes.func, - onFocus: React.PropTypes.func, - onClick: React.PropTypes.func, - onKeyDown: React.PropTypes.func + value: PropTypes.string, + autoFormat: PropTypes.bool, + defaultCountry: PropTypes.string, + onlyCountries: PropTypes.arrayOf(PropTypes.string), + preferredCountries: PropTypes.arrayOf(PropTypes.string), + onChange: PropTypes.func, + onFocus: PropTypes.func, + onClick: PropTypes.func, + onKeyDown: PropTypes.func }; export default ReactPhoneInput; From c5d4d13bba9ff26f406f9e932e5c5a0e526a9a41 Mon Sep 17 00:00:00 2001 From: Iurii Smuglov Date: Thu, 8 Jun 2017 12:38:16 +0300 Subject: [PATCH 2/2] Create package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d223e64..e6e2d40 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "url-loader": "^0.5.7", "webpack": "^1.13.1", "webpack-dev-server": "^1.14.1", - "webpack-merge": "^0.13.0" + "webpack-merge": "^0.13.0", + "prop-types": "^15.5.8", }, "dependencies": { "classnames": "^2.1.5"