mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
fix: double confirmation sur les popup
This commit is contained in:
@ -47,7 +47,6 @@ const Popup = ({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (setIsOpen) setIsOpen(false);
|
if (setIsOpen) setIsOpen(false);
|
||||||
else if (onCancel) onCancel();
|
else if (onCancel) onCancel();
|
||||||
if (onCancel) onCancel();
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Annuler
|
Annuler
|
||||||
@ -58,7 +57,6 @@ const Popup = ({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (setIsOpen) setIsOpen(false);
|
if (setIsOpen) setIsOpen(false);
|
||||||
else if (onConfirm) onConfirm();
|
else if (onConfirm) onConfirm();
|
||||||
if (onConfirm) onConfirm();
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{uniqueConfirmButton ? 'Fermer' : 'Confirmer'}
|
{uniqueConfirmButton ? 'Fermer' : 'Confirmer'}
|
||||||
|
|||||||
Reference in New Issue
Block a user