From cc5e80c3f6907eaa6b65ad67547840578bfb7aff Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 1 Sep 2025 11:37:43 +0200 Subject: [PATCH] feat: add Head component for dynamic title in Scheda Annuncio page --- .../components/schedaAnnuncioStampabile.tsx | 28 ++++++++----------- .../admin/scheda-annuncio-stampa/[id].tsx | 12 ++++++-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx b/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx index 621402c..b3f6aa2 100644 --- a/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx +++ b/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx @@ -1,6 +1,5 @@ "use client"; -import Head from "next/head"; import { useRef } from "react"; import { useReactToPrint } from "react-to-print"; import { Button } from "~/components/ui/button"; @@ -21,25 +20,20 @@ export function SchedaAnnuncioStampabile({ data }: { data: Annunci }) { }); return ( - <> - - Scheda Annuncio {data.codice} - -
-
-
-

Scheda Annuncio Stampabile

+
+
+
+

Scheda Annuncio Stampabile

- -
-
- -
+ +
+
+
- +
); } diff --git a/apps/infoalloggi/src/pages/area-riservata/admin/scheda-annuncio-stampa/[id].tsx b/apps/infoalloggi/src/pages/area-riservata/admin/scheda-annuncio-stampa/[id].tsx index 0328f0a..bc07ff5 100644 --- a/apps/infoalloggi/src/pages/area-riservata/admin/scheda-annuncio-stampa/[id].tsx +++ b/apps/infoalloggi/src/pages/area-riservata/admin/scheda-annuncio-stampa/[id].tsx @@ -1,4 +1,5 @@ import type { GetServerSideProps } from "next"; +import Head from "next/head"; import { AreaRiservataLayout } from "~/components/Layout"; import { LoadingPage } from "~/components/loading"; import { SchedaAnnuncioStampabile } from "~/components/schedaAnnuncioStampabile"; @@ -27,9 +28,14 @@ const SchedaAnnuncioPage: NextPageWithLayout = ({ return ; } return ( -
- -
+ <> + + Scheda Annuncio {data.codice} + +
+ +
+ ); };