diff --git a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx index 976ca0f..ec25be7 100644 --- a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx +++ b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx @@ -276,7 +276,7 @@ function getNavigationUrl(lat: string, lon: string): string { const PostUnlock = () => { const { servizioId } = useServizio(); - const { annuncioId } = useServizioAnnuncio(); + const { annuncioId, data: annuncio } = useServizioAnnuncio(); const { data, isLoading } = api.annunci.getProprietarioData.useQuery({ annuncioId, servizioId, @@ -311,28 +311,50 @@ const PostUnlock = () => {
{/* Proprietario Section */} -
-

{t.contatto.propietario}:

-

- {t.contatto.nome}: {propData.locatore} - {propData.tipo_locatore ? ` (${propData.tipo_locatore})` : ""} -

-
- - - {propData.numero} - - - - -
-
+ {annuncio.stato === "Sospeso" ? ( +
+

{t.contatto.propietario}:

+

{t.contatto.nome}: INFOALLOGGI (delegato)

+
+ + + +39 3453944827 + + + + +
+
+ ) : ( +
+

{t.contatto.propietario}:

+

+ {t.contatto.nome}: {propData.locatore} + {propData.tipo_locatore ? ` (${propData.tipo_locatore})` : ""} +

+
+ + + {propData.numero} + + + + +
+
+ )} {/* Immobile Section */}