From 8ff05a2cf6f9b1bb7c4084d1355b6c865fe2e8cc Mon Sep 17 00:00:00 2001 From: Ariel Serafini Date: Fri, 5 May 2017 12:30:35 -0300 Subject: [PATCH] update PropTypes to use standalone prop-types package (React >15.5) --- package.json | 3 ++- src/pie_chart.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6b14c97..1da2c09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-simple-pie-chart", - "version": "0.4.0", + "version": "0.4.1", "description": "A React component to generate simple pie charts.", "main": "build/npm/pie_chart.js", "repository": { @@ -42,6 +42,7 @@ "karma-firefox-launcher": "^0.1.6", "karma-jasmine": "^0.3.6", "karma-webpack": "^1.7.0", + "prop-types": "^15.5.8", "react": "^0.14.0", "react-addons-test-utils": "^0.14.0", "react-dom": "^0.14.0", diff --git a/src/pie_chart.jsx b/src/pie_chart.jsx index 871b097..fab72df 100644 --- a/src/pie_chart.jsx +++ b/src/pie_chart.jsx @@ -1,6 +1,6 @@ import React from 'react'; +import PropTypes from 'prop-types'; -const { PropTypes } = React; const size = 100; const radCircumference = Math.PI * 2; const center = size / 2;