From 6f85ae285bfa9aa2a89beb3ba567d52f3d537c2d Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Tue, 5 May 2026 16:50:00 +0200 Subject: [PATCH] feat: update labels and refactor link components in ServizioLinkCard and RinnovoLinkCard Co-authored-by: Copilot --- .../area-riservata/userViewHeader.tsx | 2 +- .../src/components/servizio/servizio.tsx | 105 ++++++++++-------- 2 files changed, 57 insertions(+), 50 deletions(-) diff --git a/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx b/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx index 4b012bf..7f4e523 100644 --- a/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx +++ b/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx @@ -68,7 +68,7 @@ export const UserViewHeader = () => { icon: UserCog, }, { - label: "Ricerca", + label: "Servizi", slug: "ricerca", icon: Search, }, diff --git a/apps/infoalloggi/src/components/servizio/servizio.tsx b/apps/infoalloggi/src/components/servizio/servizio.tsx index 39bf1fc..2ed3126 100644 --- a/apps/infoalloggi/src/components/servizio/servizio.tsx +++ b/apps/infoalloggi/src/components/servizio/servizio.tsx @@ -10,7 +10,6 @@ import { ClockFading, ExternalLink, type LucideIcon, - MousePointerClick, PackageCheck, SearchX, Timer, @@ -115,34 +114,33 @@ const RinnovoLinkCard = ({ userId: UsersId; }) => { return ( - - - - - Rinnovo {data.codice} - - - Data rinnovo: {data.decorrenza.toLocaleDateString("it-IT")} - - - -
+ + + Rinnovo {data.codice} + + + Data rinnovo: {data.decorrenza.toLocaleDateString("it-IT")} + + + + +
-
-
- + + + + ); }; @@ -183,24 +181,16 @@ const ServizioLinkCard = ({ } return ( - +
{status === "in_attesa" ? ( - + - - + + {t.servizio.servizio_titolo} {servizio.tipologia} @@ -214,10 +204,18 @@ const ServizioLinkCard = ({ {t.servizio.status[status]}
-
- {t.servizio.vai_al_servizio} - -
+ + + ) : ( @@ -227,11 +225,11 @@ const ServizioLinkCard = ({ status === "interrotto" && "border-red-500", status === "scaduto" && "border-gray-500", status === "completato" && "border-blue-500", - "transition-shadow hover:bg-muted/15 hover:shadow-md", + "transition-shadow", )} > - - + + {t.servizio.servizio_titolo} {servizio.tipologia} @@ -253,14 +251,23 @@ const ServizioLinkCard = ({ {t.servizio.status[status]} -
- {t.servizio.vai_al_servizio} - -
+ + + + )} - + ); };