Merge pull request #1231 from influxdata/patch/console-error
Clear console error on ConfirmButtons by fixing propTypespull/10616/head
commit
8f12489c3b
|
@ -19,12 +19,17 @@ const ConfirmButtons = ({onConfirm, item, onCancel}) => (
|
||||||
|
|
||||||
const {
|
const {
|
||||||
func,
|
func,
|
||||||
|
oneOfType,
|
||||||
shape,
|
shape,
|
||||||
|
string,
|
||||||
} = PropTypes
|
} = PropTypes
|
||||||
|
|
||||||
ConfirmButtons.propTypes = {
|
ConfirmButtons.propTypes = {
|
||||||
onConfirm: func.isRequired,
|
onConfirm: func.isRequired,
|
||||||
item: shape({}),
|
item: oneOfType([
|
||||||
|
shape(),
|
||||||
|
string,
|
||||||
|
]),
|
||||||
onCancel: func.isRequired,
|
onCancel: func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue