From 56f823519e3b9d8e6fb3aec3aea5a8b76936504f Mon Sep 17 00:00:00 2001 From: Mikita Siadykh Date: Thu, 24 Oct 2024 13:07:48 +0300 Subject: [PATCH] UIPFU-100 Add modal title prop support --- src/UserSearchModal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UserSearchModal.js b/src/UserSearchModal.js index 4a4f360..60ab56b 100644 --- a/src/UserSearchModal.js +++ b/src/UserSearchModal.js @@ -23,6 +23,7 @@ class UserSearchModal extends Component { dataKey: PropTypes.string, contentRef: PropTypes.object, modalRef: PropTypes.object, + modalTitle: PropTypes.node, restoreFocus: PropTypes.bool, initialSelectedUsers: PropTypes.shape({ [PropTypes.string]: PropTypes.shape({ @@ -98,7 +99,7 @@ class UserSearchModal extends Component { contentClass={css.modalContent} dismissible enforceFocus={false} - label={} + label={modalTitle || } open={openWhen} ref={this.modalRef} size="large"