update confirmation text
This commit is contained in:
parent
bd7ae932e8
commit
5e94f0fadc
2 changed files with 4 additions and 4 deletions
|
@ -195,8 +195,8 @@ const List: React.FC<TopicsListProps> = ({
|
|||
}
|
||||
>
|
||||
{confirmationModal === 'deleteTopics'
|
||||
? 'Are you sure want to remove selected topics?'
|
||||
: 'Are you sure want to purge messages of selected topics?'}
|
||||
? 'Are you sure you want to remove selected topics?'
|
||||
: 'Are you sure you want to purge messages of selected topics?'}
|
||||
</ConfirmationModal>
|
||||
</>
|
||||
)}
|
||||
|
|
|
@ -201,8 +201,8 @@ describe('List', () => {
|
|||
const buttonIndex = action === 'deleteTopics' ? 0 : 1;
|
||||
const confirmationText =
|
||||
action === 'deleteTopics'
|
||||
? 'Are you sure want to remove selected topics?'
|
||||
: 'Are you sure want to purge messages of selected topics?';
|
||||
? 'Are you sure you want to remove selected topics?'
|
||||
: 'Are you sure you want to purge messages of selected topics?';
|
||||
const mockFn =
|
||||
action === 'deleteTopics' ? mockDeleteTopics : mockClearTopicsMessages;
|
||||
getCheckboxInput(0).simulate('change');
|
||||
|
|
Loading…
Add table
Reference in a new issue