diff --git a/components/lib/confirmdialog/ConfirmDialog.js b/components/lib/confirmdialog/ConfirmDialog.js index 01a062ae24..458f2ed526 100644 --- a/components/lib/confirmdialog/ConfirmDialog.js +++ b/components/lib/confirmdialog/ConfirmDialog.js @@ -19,7 +19,7 @@ export const confirmDialog = (props = {}) => { OverlayService.emit('confirm-dialog', { visible: false }); }; - return [show, hide]; + return { show, hide }; }; export const ConfirmDialog = React.memo( diff --git a/components/lib/confirmpopup/ConfirmPopup.js b/components/lib/confirmpopup/ConfirmPopup.js index 2e354cd96a..1a815a864a 100644 --- a/components/lib/confirmpopup/ConfirmPopup.js +++ b/components/lib/confirmpopup/ConfirmPopup.js @@ -19,7 +19,7 @@ export const confirmPopup = (props = {}) => { OverlayService.emit('confirm-popup', { visible: false }); }; - return [show, hide]; + return { show, hide }; }; export const ConfirmPopup = React.memo(