fix: appoiment-colors
This commit is contained in:
parent
73eb35b21b
commit
33643df28b
@ -567,13 +567,19 @@ export default function ConsultasPage() {
|
|||||||
<TableCell>
|
<TableCell>
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
appointment.status === "confirmed"
|
appointment.status === "confirmed" || appointment.status === "confirmado"
|
||||||
? "default"
|
? "default"
|
||||||
: appointment.status === "pending"
|
: appointment.status === "pending" || appointment.status === "pendente"
|
||||||
? "secondary"
|
? "secondary"
|
||||||
|
: appointment.status === "requested" || appointment.status === "solicitado"
|
||||||
|
? "default"
|
||||||
: "destructive"
|
: "destructive"
|
||||||
}
|
}
|
||||||
className={appointment.status === "confirmed" ? "bg-green-600" : ""}
|
className={
|
||||||
|
appointment.status === "confirmed" || appointment.status === "confirmado" ? "bg-[#10B981]" :
|
||||||
|
appointment.status === "requested" || appointment.status === "solicitado" ? "bg-blue-500" :
|
||||||
|
appointment.status === "canceled" || appointment.status === "cancelled" || appointment.status === "cancelado" ? "bg-red-500" : ""
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{translateStatus(appointment.status)}
|
{translateStatus(appointment.status)}
|
||||||
</Badge>
|
</Badge>
|
||||||
@ -658,13 +664,21 @@ export default function ConsultasPage() {
|
|||||||
<div className="text-[10px] sm:text-xs text-muted-foreground">Status</div>
|
<div className="text-[10px] sm:text-xs text-muted-foreground">Status</div>
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
appointment.status === "confirmed"
|
appointment.status === "confirmed" || appointment.status === "confirmado"
|
||||||
? "default"
|
? "default"
|
||||||
: appointment.status === "pending"
|
: appointment.status === "pending" || appointment.status === "pendente"
|
||||||
? "secondary"
|
? "secondary"
|
||||||
|
: appointment.status === "requested" || appointment.status === "solicitado"
|
||||||
|
? "default"
|
||||||
: "destructive"
|
: "destructive"
|
||||||
}
|
}
|
||||||
className={`text-[10px] sm:text-xs ${appointment.status === "confirmed" ? "bg-green-600" : ""}`}
|
className={
|
||||||
|
`text-[10px] sm:text-xs ${
|
||||||
|
appointment.status === "confirmed" || appointment.status === "confirmado" ? "bg-[#10B981]" :
|
||||||
|
appointment.status === "requested" || appointment.status === "solicitado" ? "bg-blue-500" :
|
||||||
|
appointment.status === "canceled" || appointment.status === "cancelled" || appointment.status === "cancelado" ? "bg-red-500" : ""
|
||||||
|
}`
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{translateStatus(appointment.status)}
|
{translateStatus(appointment.status)}
|
||||||
</Badge>
|
</Badge>
|
||||||
@ -777,13 +791,19 @@ export default function ConsultasPage() {
|
|||||||
<span className="col-span-3">
|
<span className="col-span-3">
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
viewingAppointment?.status === "confirmed"
|
viewingAppointment?.status === "confirmed" || viewingAppointment?.status === "confirmado"
|
||||||
? "default"
|
? "default"
|
||||||
: viewingAppointment?.status === "pending"
|
: viewingAppointment?.status === "pending" || viewingAppointment?.status === "pendente"
|
||||||
? "secondary"
|
? "secondary"
|
||||||
|
: viewingAppointment?.status === "requested" || viewingAppointment?.status === "solicitado"
|
||||||
|
? "default"
|
||||||
: "destructive"
|
: "destructive"
|
||||||
}
|
}
|
||||||
className={viewingAppointment?.status === "confirmed" ? "bg-green-600" : ""}
|
className={
|
||||||
|
viewingAppointment?.status === "confirmed" || viewingAppointment?.status === "confirmado" ? "bg-[#10B981]" :
|
||||||
|
viewingAppointment?.status === "requested" || viewingAppointment?.status === "solicitado" ? "bg-blue-500" :
|
||||||
|
viewingAppointment?.status === "canceled" || viewingAppointment?.status === "cancelled" || viewingAppointment?.status === "cancelado" ? "bg-red-500" : ""
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{translateStatus(viewingAppointment?.status || "")}
|
{translateStatus(viewingAppointment?.status || "")}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user