From c6b462a54d23a13a6e484e4da7bf9ab29de737dd Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Thu, 19 Mar 2026 12:14:11 +0100 Subject: [PATCH] feat: enhance RinnovoLinkCard and ServizioLinkCard components with improved styling and status handling --- .../src/components/servizio/servizio.tsx | 114 +++++++++++------- 1 file changed, 68 insertions(+), 46 deletions(-) diff --git a/apps/infoalloggi/src/components/servizio/servizio.tsx b/apps/infoalloggi/src/components/servizio/servizio.tsx index b9b70fb..c397963 100644 --- a/apps/infoalloggi/src/components/servizio/servizio.tsx +++ b/apps/infoalloggi/src/components/servizio/servizio.tsx @@ -124,7 +124,7 @@ const RinnovoLinkCard = ({ className={cn("transition-shadow hover:bg-muted/15 hover:shadow-md")} > - + Rinnovo {data.codice} @@ -185,52 +185,74 @@ const ServizioLinkCard = ({ } key={servizio.servizio_id} > - - - - {t.servizio.servizio_titolo} {servizio.tipologia} - - - {t.servizio.servizio_creato_il}{" "} - {servizio.created_at.toLocaleDateString("it-IT")} - - - -
- + {status === "in_attesa" ? ( + + + + + - {t.servizio.status[status]} -
-
- {t.servizio.vai_al_servizio} - -
-
-
+ + + {t.servizio.servizio_titolo} {servizio.tipologia} + + + {t.servizio.servizio_creato_il}{" "} + {servizio.created_at.toLocaleDateString("it-IT")} + + + +
+ + + {t.servizio.status[status]} +
+
+ {t.servizio.vai_al_servizio} + +
+
+ + ) : ( + + + + {t.servizio.servizio_titolo} {servizio.tipologia} + + + {t.servizio.servizio_creato_il}{" "} + {servizio.created_at.toLocaleDateString("it-IT")} + + + +
+ + + {t.servizio.status[status]} +
+
+ {t.servizio.vai_al_servizio} + +
+
+
+ )} ); };