Skip to content

Commit

Permalink
#3896: Fix PropType for body
Browse files Browse the repository at this point in the history
It can be a JSX element as well as a string.
  • Loading branch information
gjvoosten committed Oct 20, 2021
1 parent 0936f19 commit f20e010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/TriggerableConfirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f20e010

Please sign in to comment.