From e931ddce587784eb3a9ec6a09e05f2b5accfef29 Mon Sep 17 00:00:00 2001 From: Jan Kelin Date: Fri, 2 Jun 2017 16:00:29 +0200 Subject: [PATCH] Add prop-types --- package.json | 1 + src/components/cell.js | 3 ++- src/components/grid.js | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4be8b53..05232a2 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "builder-radium-component-dev": "^2.1.2", "chai": "^3.2.0", "mocha": "^3.1.2", + "prop-types": "^15.5.10", "radium": "^0.18.1", "react": "^15.3.2", "react-addons-test-utils": "^15.3.2", diff --git a/src/components/cell.js b/src/components/cell.js index c60abfb..3e292a6 100644 --- a/src/components/cell.js +++ b/src/components/cell.js @@ -1,5 +1,6 @@ /* eslint-disable new-cap */ -import React, { PropTypes } from "react"; +import React from "react"; +import PropTypes from "prop-types"; import Radium from "radium"; const Cell = (props) => { diff --git a/src/components/grid.js b/src/components/grid.js index 9b81fcc..14c5ac6 100644 --- a/src/components/grid.js +++ b/src/components/grid.js @@ -1,5 +1,6 @@ /* eslint-disable new-cap */ -import React, { PropTypes } from "react"; +import React from "react"; +import PropTypes from "prop-types"; import Radium from "radium"; import resolveCells from "./util/resolve-cells";