Skip to content

Commit

Permalink
UIPFU-100 Add modal title prop support
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx authored Oct 24, 2024
1 parent 78f1547 commit 56f8235
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UserSearchModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -98,7 +99,7 @@ class UserSearchModal extends Component {
contentClass={css.modalContent}
dismissible
enforceFocus={false}
label={<FormattedMessage id="ui-plugin-find-user.modal.label" />}
label={modalTitle || <FormattedMessage id="ui-plugin-find-user.modal.label" />}

Check failure on line 102 in src/UserSearchModal.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

'modalTitle' is not defined

Check failure on line 102 in src/UserSearchModal.js

View workflow job for this annotation

GitHub Actions / github-actions-ci

'modalTitle' is not defined
open={openWhen}
ref={this.modalRef}
size="large"
Expand Down

0 comments on commit 56f8235

Please sign in to comment.