From 6036c6c918cd2be5061ba46a11203b309bd798bd Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 12 Dec 2024 16:12:40 +1100 Subject: [PATCH] chore: add modal dataTestId for title & description --- ts/components/SessionWrapperModal.tsx | 2 +- ts/components/dialog/SessionConfirm.tsx | 7 ++----- .../dialog/blockOrUnblock/BlockOrUnblockDialog.tsx | 2 +- ts/react.d.ts | 3 ++- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ts/components/SessionWrapperModal.tsx b/ts/components/SessionWrapperModal.tsx index 9f244c044..5cccdf162 100644 --- a/ts/components/SessionWrapperModal.tsx +++ b/ts/components/SessionWrapperModal.tsx @@ -124,7 +124,7 @@ export const SessionWrapperModal = (props: SessionWrapperModalType) => { }) : null} - {title} + {title} { const { title = '', i18nMessage, - i18nMessageSub, radioOptions, okTheme, closeTheme = SessionButtonColor.Danger, @@ -133,9 +131,8 @@ export const SessionConfirm = (props: SessionConfirmDialogProps) => { {!showHeader && }
- {i18nMessage ? : null} - {i18nMessageSub ? ( - + {i18nMessage ? ( + ) : null} {radioOptions && chosenOption !== '' ? ( - + diff --git a/ts/react.d.ts b/ts/react.d.ts index 79ff18f09..0e3fc2dc4 100644 --- a/ts/react.d.ts +++ b/ts/react.d.ts @@ -233,7 +233,8 @@ declare module 'react' { | 'conversation-options-avatar' | 'copy-sender-from-details' | 'copy-msg-from-details' - | 'block-unblock-modal-description' + | 'modal-heading' + | 'modal-description' // modules profile name | 'module-conversation__user__profile-name' | 'module-message-search-result__header__name__profile-name'