From b9219fbbfef9230a3a1e5d0e0287b253926f26f3 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 30 Mar 2026 10:04:43 +0200 Subject: [PATCH] feat: add admin notification for interrupted services with announcement display --- .../src/components/servizio/servizio.tsx | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/apps/infoalloggi/src/components/servizio/servizio.tsx b/apps/infoalloggi/src/components/servizio/servizio.tsx index 39cea50..d49b7d9 100644 --- a/apps/infoalloggi/src/components/servizio/servizio.tsx +++ b/apps/infoalloggi/src/components/servizio/servizio.tsx @@ -349,6 +349,35 @@ const Main = () => { // se interrotto, mostra avvisos if (servizio.isInterrotto) { + if (isAdmin) { + return ( + <> +
+
+ + {t.servizio.servizio_interrotto} +
+
+
+ {servizio.annunci.map((data) => { + return ( + + + + ); + })} + {servizio.annunci.length > 1 && + servizio.annunci.length % 2 === 1 && ( +
+ )} +
+ + ); + } return (