Merge pull request #1231 from influxdata/patch/console-error

Clear console error on ConfirmButtons by fixing propTypes
pull/10616/head
Hunter Trujillo 2017-04-07 18:20:55 -06:00 committed by GitHub
commit 8f12489c3b
1 changed files with 6 additions and 1 deletions

View File

@ -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,
} }