From af4a3a235325b8fbdf8358e96f30310e284c488e Mon Sep 17 00:00:00 2001 From: Steven Silvestri Date: Thu, 13 Apr 2017 14:53:37 -0400 Subject: [PATCH 1/2] Use prop-types package instead of React.PropTypes --- package.json | 3 ++- src/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3806b0493..87507aa70 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "react-dom": "^0.14.0 || ^15.0.0" }, "dependencies": { - "classnames": "^2.2.0" + "classnames": "^2.2.0", + "prop-types": "^15.5.8" }, "engines": { "node": ">=4.2.1" diff --git a/src/index.js b/src/index.js index 24780c721..f05a7fd56 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,7 @@ 'use strict' -import React, { Component, PropTypes } from 'react' +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import ReactDOM from 'react-dom' import classname from 'classnames' From 762ccfeddb3d17f740d45643150ea183d3ee3149 Mon Sep 17 00:00:00 2001 From: Steven Silvestri Date: Thu, 13 Apr 2017 14:57:33 -0400 Subject: [PATCH 2/2] remove semi-colons to adhere to linting configuration --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index f05a7fd56..80fcd92ea 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ 'use strict' -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; +import React, { Component } from 'react' +import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import classname from 'classnames'