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 {
|
||||
func,
|
||||
oneOfType,
|
||||
shape,
|
||||
string,
|
||||
} = PropTypes
|
||||
|
||||
ConfirmButtons.propTypes = {
|
||||
onConfirm: func.isRequired,
|
||||
item: shape({}),
|
||||
item: oneOfType([
|
||||
shape(),
|
||||
string,
|
||||
]),
|
||||
onCancel: func.isRequired,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue