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

Commit 61088dc

Browse files
committed
Remove all references to React.PropTypes.
Fixes #101.
1 parent 1949032 commit 61088dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ChipInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const defaultChipRenderer = ({ value, text, isFocused, isDisabled, handleClick,
109109

110110
class ChipInput extends React.Component {
111111
static contextTypes = {
112-
muiTheme: React.PropTypes.object.isRequired,
112+
muiTheme: PropTypes.object.isRequired,
113113
};
114114

115115
state = {

stories/ControlledChipInput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import PropTypes from 'prop-types'
23
import ChipInput from '../src/ChipInput'
34

45
class ControlledChipInput extends React.Component {
@@ -42,7 +43,7 @@ class ControlledChipInput extends React.Component {
4243
}
4344

4445
ControlledChipInput.propTypes = {
45-
addOnBlur: React.PropTypes.bool
46+
addOnBlur: PropTypes.bool
4647
}
4748

4849
export default ControlledChipInput

0 commit comments

Comments
 (0)