refactor: update AnnuncioConfermaPopover button variant based on confirmation status

This commit is contained in:
Marco Pedone 2026-04-09 16:41:45 +02:00
parent dc25815e06
commit 9f1c6c67bb

View file

@ -191,7 +191,10 @@ export const AnnuncioConfermaPopover = ({
return ( return (
<Popover> <Popover>
<PopoverTrigger asChild> <PopoverTrigger asChild>
<Button size="sm" variant="orange"> <Button
size="sm"
variant={status_conferma === null ? "outline" : "orange"}
>
<Workflow /> {status_conferma || "Non in conferma"} <Workflow /> {status_conferma || "Non in conferma"}
</Button> </Button>
</PopoverTrigger> </PopoverTrigger>