diff --git a/src/components/crapp/EventoCard.tsx b/src/components/crapp/EventoCard.tsx index 7013e5d..71acbf6 100644 --- a/src/components/crapp/EventoCard.tsx +++ b/src/components/crapp/EventoCard.tsx @@ -22,7 +22,7 @@ import { dataOggi } from "@/lib/scout-live"; const tipoMeta = { partita: { label: "Partita", className: "bg-accent text-accent-foreground" }, allenamento: { label: "Allenamento", className: "bg-training text-training-foreground" }, - evento: { label: "Eventi", className: "bg-warning text-warning-foreground" }, + evento: { label: "Evento", className: "bg-warning text-warning-foreground" }, compleanno: { label: "Compleanno", className: "bg-success text-success-foreground" }, } as const; @@ -83,7 +83,6 @@ export function EventoCard({ const totale = rosa.length; const isCompleanno = evento.tipo === "compleanno"; const passato = evento.data < dataOggi(); - const note = evento.note.trim(); const cliccabile = Boolean(linkTo); const stati = evento.tipo === "evento" @@ -114,6 +113,7 @@ export function EventoCard({ evento.tipo === "partita" ? `${evento.casa ? "Casa" : "Trasferta"}${evento.campionato ? " · Campionato" : " · Amichevole"}` : null; + const metaStato = stato ? statoMeta[stato] : null; return ( + {metaStato ? ( +

+ {metaStato.emoji} + {metaStato.label} +

+ ) : null} + {io ? (
@@ -181,7 +194,6 @@ export function EventoCard({ const meta = statoMeta[s]; const Icon = iconeStato[s]; const attivo = stato === s; - const mostraTesto = s === "presente" && attivo; return ( ); })}
) : null} - - {note ? ( -

📝 {note}

- ) : null}
);