From b10c5c4b286190577ba84f2ccd9fa02960da9fc1 Mon Sep 17 00:00:00 2001 From: marsha88 Date: Sun, 4 Jun 2017 22:01:18 -0400 Subject: [PATCH] Removed deprecated use of PropTypes in react. Added third party prop-types npm package to accomplish same tasks. --- package.json | 1 + src/Step.js | 3 ++- src/Stepper.js | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0d6d434..9e75684 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "node": ">= 5.11.0" }, "dependencies": { + "prop-types": "^15.5.10", "react": "^15.3.2", "react-dom": "^15.3.2" } diff --git a/src/Step.js b/src/Step.js index 6c09481..76e3e2c 100644 --- a/src/Step.js +++ b/src/Step.js @@ -1,4 +1,5 @@ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import { PropTypes } from 'prop-types'; export default class Step extends Component { constructor() { diff --git a/src/Stepper.js b/src/Stepper.js index 94f911b..44793b3 100644 --- a/src/Stepper.js +++ b/src/Stepper.js @@ -1,4 +1,5 @@ -import React, { PropTypes } from 'react'; +import React from 'react'; +import { PropTypes } from 'prop-types'; import Step from './Step';