File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Shared/Components/ConfirmationModal Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ const ConfirmationModalBody = ({
96
96
< div className = "p-16 dc__gap-12 flexbox dc__content-end" >
97
97
{ secondaryButtonConfig && (
98
98
< Button
99
- dataTestId = { secondaryButtonConfig . dataTestId ?? ' confirmation-modal-secondary-button' }
99
+ dataTestId = " confirmation-modal-secondary-button"
100
100
size = { ComponentSizeType . large }
101
101
variant = { ButtonVariantType . secondary }
102
102
style = {
@@ -114,7 +114,7 @@ const ConfirmationModalBody = ({
114
114
115
115
{ primaryButtonConfig && (
116
116
< Button
117
- dataTestId = { primaryButtonConfig . dataTestId ?? ' confirmation-modal-primary-button' }
117
+ dataTestId = " confirmation-modal-primary-button"
118
118
size = { ComponentSizeType . large }
119
119
variant = { ButtonVariantType . primary }
120
120
style = {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export enum ConfirmationModalVariantType {
9
9
}
10
10
11
11
type CommonButtonProps < isConfig extends boolean , isCustomVariant extends boolean > = Pick < ButtonProps , 'text' > &
12
- Partial < Pick < ButtonProps , 'startIcon' | 'endIcon' | 'disabled' | 'dataTestId' > > &
12
+ Partial < Pick < ButtonProps , 'startIcon' | 'endIcon' | 'disabled' > > &
13
13
( isConfig extends false ? { onClick : ( ...args : Partial < Parameters < ButtonProps [ 'onClick' ] > > ) => void } : { } ) &
14
14
( isCustomVariant extends true ? Pick < ButtonProps , 'style' > : { } )
15
15
You can’t perform that action at this time.
0 commit comments