Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.

Commit 74e14af

Browse files
rsolomonleMaik
authored andcommitted
Use prop-types lib instead of deprecated React.PropTypes (#100)
1 parent cfd1b78 commit 74e14af

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@
4545
"react": "^15.3.2",
4646
"react-dom": "^15.3.2",
4747
"react-tap-event-plugin": "^1.0.0 || ^2.0.0"
48+
},
49+
"dependencies": {
50+
"prop-types": "^15.5.7"
4851
}
4952
}

src/ChipInput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* Notice: Some code was adapted from Material-UI's text field.
33
* Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)
44
*/
5-
import React, { PropTypes } from 'react'
5+
import React from 'react'
6+
import PropTypes from 'prop-types'
67
import TextFieldUnderline from 'material-ui/TextField/TextFieldUnderline'
78
import TextFieldHint from 'material-ui/TextField/TextFieldHint'
89
import TextFieldLabel from 'material-ui/TextField/TextFieldLabel'

0 commit comments

Comments
 (0)