From 3dfe8a05a4d0dd1aca7ae0b740e1ddfc81d3cef0 Mon Sep 17 00:00:00 2001 From: Vladimir Borisov Date: Wed, 2 Oct 2019 18:11:16 +0300 Subject: [PATCH] More correct way to define a property in propTypes --- src/common/ModalDialog/ModalDialog.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/ModalDialog/ModalDialog.js b/src/common/ModalDialog/ModalDialog.js index f91279827..12ab87e26 100644 --- a/src/common/ModalDialog/ModalDialog.js +++ b/src/common/ModalDialog/ModalDialog.js @@ -37,10 +37,7 @@ ModalDialog.propTypes = { className: PropTypes.string, title: PropTypes.string, buttons: PropTypes.arrayOf(PropTypes.shape({ - label: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.object, - ]), + label: PropTypes.node, icon: PropTypes.string, props: PropTypes.object // Button.propTypes unfortunately these are not defined })),