Skip to content

Commit c08a601

Browse files
Fons Leenaarsagilgur5
Fons Leenaars
authored andcommitted
(deps): use PropTypes from prop-types lib instead of React
- fixes the React.PropTypes deprecation warning
1 parent afce58f commit c08a601

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"webpack-dev-server": "^1.10.1"
4242
},
4343
"peerDependencies": {
44+
"prop-types": "^15.5.8",
4445
"react": "^0.14.0 || ^15.0.0",
4546
"react-dom": "^0.14.0 || ^15.0.0"
4647
},

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import PropTypes from 'prop-types'
2+
import React, { Component } from 'react'
23
import trimCanvas from 'trim-canvas'
34

45
import Bezier from './bezier.js'

0 commit comments

Comments
 (0)