mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
chore: adjust secondayButton onClick
This commit is contained in:
@@ -187,7 +187,13 @@ const ConfirmationModal = ({
|
|||||||
? secondaryButton?.isLoading
|
? secondaryButton?.isLoading
|
||||||
: isPrimaryButtonLoading
|
: isPrimaryButtonLoading
|
||||||
}
|
}
|
||||||
onClick={closeModalHandler}
|
onClick={(e) => {
|
||||||
|
if (secondaryButton?.onClick) {
|
||||||
|
secondaryButton.onClick(e);
|
||||||
|
} else {
|
||||||
|
closeModalHandler();
|
||||||
|
}
|
||||||
|
}}
|
||||||
className={cn(
|
className={cn(
|
||||||
'p-2 rounded-xl text-sm',
|
'p-2 rounded-xl text-sm',
|
||||||
secondaryButton?.className
|
secondaryButton?.className
|
||||||
|
|||||||
Reference in New Issue
Block a user