From f20e010999ea0aea54211a2dfd95a200bc56ba2b Mon Sep 17 00:00:00 2001 From: Gertjan van Oosten Date: Wed, 20 Oct 2021 13:38:02 +0200 Subject: [PATCH] NCI-Agency/anet#3896: Fix PropType for `body` It can be a JSX element as well as a string. --- client/src/components/TriggerableConfirm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/TriggerableConfirm.js b/client/src/components/TriggerableConfirm.js index 0dd8e13e1f..650e2c5e19 100644 --- a/client/src/components/TriggerableConfirm.js +++ b/client/src/components/TriggerableConfirm.js @@ -81,7 +81,7 @@ const TriggerableConfirm = ({ TriggerableConfirm.propTypes = { onConfirm: PropTypes.func.isRequired, title: PropTypes.string, - body: PropTypes.string, + body: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), confirmText: PropTypes.string, cancelText: PropTypes.string, variant: PropTypes.string,