Skip to content

Commit

Permalink
update PropTypes to use standalone prop-types package (React >15.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielserafini committed May 5, 2017
1 parent 75dea76 commit 8ff05a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/pie_chart.jsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 8ff05a2

Please sign in to comment.