feat: replace button with confirmation dialog for sending email in AdminSendScheda
This commit is contained in:
parent
4e41324624
commit
98d6f5763d
1 changed files with 9 additions and 8 deletions
|
|
@ -144,20 +144,21 @@ const AdminSendScheda = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Confirm
|
||||||
aria-label="Invia scheda annuncio via email"
|
description="Sei sicuro di voler inviare l'email con la scheda dell'annuncio?"
|
||||||
className="w-fit"
|
onConfirm={() => {
|
||||||
onClick={() => {
|
|
||||||
mutate({
|
mutate({
|
||||||
annuncioId,
|
annuncioId,
|
||||||
userId,
|
userId,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
variant="outline"
|
title="Invia email scheda"
|
||||||
>
|
>
|
||||||
<Mail />
|
<Button className="w-fit" size="sm" variant="outline">
|
||||||
<span>Invia email contatti</span>
|
<Mail />
|
||||||
</Button>
|
<span>Invia email contatti</span>
|
||||||
|
</Button>
|
||||||
|
</Confirm>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue