From 778fffbe1adbe17318a0d20d42e59cd01a35e8d3 Mon Sep 17 00:00:00 2001 From: Gustav Hansen Date: Wed, 13 Sep 2023 09:51:02 +0200 Subject: [PATCH] fix(helper-plugin): move prop-type validation a level down --- .../core/helper-plugin/src/components/ConfirmDialog.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/helper-plugin/src/components/ConfirmDialog.jsx b/packages/core/helper-plugin/src/components/ConfirmDialog.jsx index f22ddb2397..596ddb02cd 100644 --- a/packages/core/helper-plugin/src/components/ConfirmDialog.jsx +++ b/packages/core/helper-plugin/src/components/ConfirmDialog.jsx @@ -55,7 +55,6 @@ export const Root = ({ Root.defaultProps = { iconBody: , - iconRightButton: , isConfirmButtonLoading: false, leftButtonText: { id: 'app.components.Button.cancel', @@ -152,8 +151,12 @@ const Footer = ({ ); }; +Footer.defaultProps = { + iconRightButton: , +}; + Footer.propTypes = { - iconRightButton: PropTypes.node.isRequired, + iconRightButton: PropTypes.node, isConfirmButtonLoading: PropTypes.bool.isRequired, onConfirm: PropTypes.func.isRequired, onToggleDialog: PropTypes.func.isRequired,