diff --git a/apps/infoalloggi/biome.json b/apps/infoalloggi/biome.json index 8758565..5cfc685 100644 --- a/apps/infoalloggi/biome.json +++ b/apps/infoalloggi/biome.json @@ -109,7 +109,6 @@ "noDangerouslySetInnerHtml": "off" }, "style": { - "noNestedTernary": "info", "noUselessElse": "on", "noYodaExpression": "on", "useThrowNewError": "on", diff --git a/apps/infoalloggi/src/components/Layout.tsx b/apps/infoalloggi/src/components/Layout.tsx index f2ab57e..3706033 100644 --- a/apps/infoalloggi/src/components/Layout.tsx +++ b/apps/infoalloggi/src/components/Layout.tsx @@ -199,11 +199,7 @@ const UserViewHeader = () => { - @@ -212,7 +208,7 @@ const UserViewHeader = () => {
@@ -154,7 +154,7 @@ const PricePreparation = ({ )} @@ -128,7 +128,7 @@ const InteressatoButton = ({ annuncioId }: { annuncioId: AnnunciId }) => { if (isLoading || hasInterest === undefined) { return ( - @@ -146,7 +146,7 @@ const InteressatoButton = ({ annuncioId }: { annuncioId: AnnunciId }) => { return ( diff --git a/apps/infoalloggi/src/components/annuncio_card.tsx b/apps/infoalloggi/src/components/annuncio_card.tsx index b14c43d..09a5b9a 100644 --- a/apps/infoalloggi/src/components/annuncio_card.tsx +++ b/apps/infoalloggi/src/components/annuncio_card.tsx @@ -89,7 +89,7 @@ export const CardAnnuncio = ({ {images?.map((img, idx) => ( - + { + const { t } = useTranslation(); + + return ( +
+ +
+
+ Cod: {codice} +
+ {stato === "Trattativa" && ( +
+
+
+ Annuncio in Trattativa +
+
+
+ )} + + + + {images?.map((img, idx) => ( + + + + ))} + {videos?.map((video) => { + if (!video) return null; + if (video.includes("youtu")) { + return null; + } + return ( + { + e.preventDefault(); + e.stopPropagation(); + }} + > + + + ); + })} + + +
e.preventDefault()} + onKeyDown={(e) => e.stopPropagation()} + role="button" + tabIndex={0} + > + + +
+
+
+
+
{tipo}
+
+
+
+
+ {t.card.codice} + + + Cod: {codice} + +
+
+ {t.card.prezzo} + + + {formatCurrency(prezzo / 1e2)} + +
+
+ +
+ {t.card.titolo} + + + {titolo} + +
+
+ {t.card.indirizzo} + + + {comune && provincia && `${comune} (${provincia})`} + +
+
+ +
+
+ + +
+

+ {mq ? Number.parseFloat(mq) : 0}{" "} + + m2 + +

+
+
+
+ + +
+

+ {camereTesti({ camere: camere, testi: t.card })} +

+
+
+
+ + +
+

+ {handleConsegna({ + aggiornamento: t.card.in_aggiornamento, + consegna: consegna, + consegna_da: t.card.consegna_da, + mesi: t.preferenze.mesi, + subito: t.card.consegna_subito, + })} +

+
+
+
+ +
+ ); +}; + +export const CarouselAnnuncio = ({ + single, + immagini, + videos, + updated_at, +}: { + single?: boolean; + immagini: string[] | null; + videos: string[] | null; + updated_at: Date | null; +}) => { + const [openModal, setOpenModal] = useState(false); + const [idxModal, setIdxModal] = useState(0); + function handleOpenModal(position: number) { + setIdxModal(position); + setOpenModal(true); + } + return ( + <> +
+
+ + + {immagini?.map((img, idx) => ( + + handleOpenModal(idx)} + priority={idx === 0} + src={`/storage-api/get/${img}?image=true&${updated_at?.toString() || new Date().toString()}`} + width={800} + /> + handleOpenModal(idx)} + /> + + ))} + {videos?.map((video, idx) => { + if (!video) return null; + if (video.includes("youtu")) { + return null; + } + return ( + + + + + handleOpenModal(immagini?.length || 0 + idx) + } + /> + + ); + })} + + + + + +
+
+ + + + Image Dialog + Immagine + + + + {immagini?.map((img, idx) => ( + + {`carousel-img-${idx}`} + + ))} + {videos?.map((video) => { + if (!video) return null; + if (video.includes("youtu")) { + return null; + } + return ( + + + + ); + })} + + + + + + + + + ); +}; diff --git a/apps/infoalloggi/src/components/area-riservata/dashboard.tsx b/apps/infoalloggi/src/components/area-riservata/dashboard.tsx index 14dd071..c2f4860 100644 --- a/apps/infoalloggi/src/components/area-riservata/dashboard.tsx +++ b/apps/infoalloggi/src/components/area-riservata/dashboard.tsx @@ -30,7 +30,7 @@ export const AdminDashboard = () => {
Errore caricamento statistiche
) : (
- + Utenti diff --git a/apps/infoalloggi/src/components/area-riservata/ordini.tsx b/apps/infoalloggi/src/components/area-riservata/ordini.tsx index 7c50a61..a4138cb 100644 --- a/apps/infoalloggi/src/components/area-riservata/ordini.tsx +++ b/apps/infoalloggi/src/components/area-riservata/ordini.tsx @@ -145,7 +145,7 @@ export const OrdiniModal = ({ href={`/area-riservata/payment-recap/${data.ordine_id}`} target="_blank" > - diff --git a/apps/infoalloggi/src/components/chat/chat-attachments.tsx b/apps/infoalloggi/src/components/chat/chat-attachments.tsx index 2bdc575..42fa371 100644 --- a/apps/infoalloggi/src/components/chat/chat-attachments.tsx +++ b/apps/infoalloggi/src/components/chat/chat-attachments.tsx @@ -102,7 +102,7 @@ export const ChatAttachments = ({ target="_blank" >
- diff --git a/apps/infoalloggi/src/components/prezzi.tsx b/apps/infoalloggi/src/components/prezzi.tsx index 4be3de2..62bf4cf 100644 --- a/apps/infoalloggi/src/components/prezzi.tsx +++ b/apps/infoalloggi/src/components/prezzi.tsx @@ -200,7 +200,7 @@ export const PricingComponent = ({ href={"/prezzi#contratti"} id="contratto-link" > - diff --git a/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx b/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx index 6da87d2..8275922 100644 --- a/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx +++ b/apps/infoalloggi/src/components/schedaAnnuncioStampabile.tsx @@ -216,7 +216,7 @@ function SchedaAnnuncio({ data }: { data: Annunci }) { className="flex items-center justify-start gap-2" key={item.text} > - + diff --git a/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx b/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx index 2308515..1c72d87 100644 --- a/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx +++ b/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx @@ -7,6 +7,7 @@ import { FolderKanban, Pen, Plus, + ShieldUser, Trash2, Wrench, } from "lucide-react"; @@ -99,7 +100,7 @@ export const AnnuncioActions = () => { href={`https://win-jk822fggr6b:480/id/${data.gestionale_id}`} target="_blank" > - @@ -107,41 +108,54 @@ export const AnnuncioActions = () => { )} {isAdmin && ( - <> - - - + + + + + - { - mutate({ - annuncioId, - servizioId, - }); - }} - title="Elimina annuncio" - > - - - + + + + )}
); @@ -232,7 +246,6 @@ const ContrattoImport = ({
@@ -159,11 +156,7 @@ const AnnuncioDettaglio = ({ data }: { data: AnnuncioData }) => { return ( - diff --git a/apps/infoalloggi/src/components/servizio/interactions.tsx b/apps/infoalloggi/src/components/servizio/interactions.tsx index 6df60a8..79f7b33 100644 --- a/apps/infoalloggi/src/components/servizio/interactions.tsx +++ b/apps/infoalloggi/src/components/servizio/interactions.tsx @@ -58,10 +58,7 @@ export const Interactions = () => { aria-label="Conferma immobile" href={`/servizio/conferma-immobile/${servizioId}/${annuncioId}`} > - @@ -71,7 +68,7 @@ export const Interactions = () => { @@ -136,7 +133,7 @@ export const Interactions = () => { href={`/servizio/contratto/${servizioId}/${annuncioId}`} target="_blank" > - @@ -145,7 +142,7 @@ export const Interactions = () => { - @@ -172,7 +169,7 @@ export const Interactions = () => { href={`/servizio/contratto-registrazione/${servizioId}/${annuncioId}`} target="_blank" > - @@ -181,7 +178,7 @@ export const Interactions = () => { - @@ -230,7 +227,7 @@ export const SaldoButton = ({ return ( @@ -356,10 +350,7 @@ const ConfermaLavorazioneModal = () => { return ( - diff --git a/apps/infoalloggi/src/components/servizio/main.tsx b/apps/infoalloggi/src/components/servizio/main.tsx index 192be35..7f6fbf1 100644 --- a/apps/infoalloggi/src/components/servizio/main.tsx +++ b/apps/infoalloggi/src/components/servizio/main.tsx @@ -1,3 +1,4 @@ +import { add } from "date-fns"; import { Package, PackageCheck, UserCircle } from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/router"; @@ -5,8 +6,7 @@ import { useEffect } from "react"; import toast from "react-hot-toast"; import { AnnuncioCard } from "~/components/servizio/annuncio_card"; import { SaldoButton } from "~/components/servizio/interactions"; -import { ServizioDuration } from "~/components/servizio/service-duration-display"; -import { ServizioActions2 } from "~/components/servizio/servizio_actions"; +import { ServizioActions } from "~/components/servizio/servizio_actions"; import { Button } from "~/components/ui/button"; import { Card, @@ -24,7 +24,8 @@ import { import { api } from "~/utils/api"; import { AnnunciCompatibili, - AnnunciSelezionati, + AnnunciSelezionatiAccordion, + AnnunciSelezionatiDialog, } from "./servizio_annunci_accordions"; const ServizioCard = ({ @@ -42,7 +43,10 @@ const ServizioCard = ({ }) => { return ( { )}
- {isAdmin && } + {isAdmin && } } header={ @@ -157,7 +161,7 @@ export const ServizioContent = () => { Servizio non attivo - + } /> @@ -183,7 +187,7 @@ export const ServizioContent = () => { } header={ <> - + } /> @@ -192,7 +196,6 @@ export const ServizioContent = () => { const openContattiAnnunci = servizio.annunci.filter( (a) => a.open_contatti_at !== null && a.user_confirmed_at === null, - ); const annunciInConferma = servizio.annunci.filter( @@ -206,19 +209,27 @@ export const ServizioContent = () => { -
-
-
- - Contatti sbloccati +
+
+
+
+ + Contatti sbloccati +
+ + {openContattiAnnunci.length} / 10 +
- {openContattiAnnunci.length} / 10 +
- + + {`Durata servizio: ${new Date(servizio.decorrenza).toLocaleDateString("it-IT")} - ${new Date(add(servizio.decorrenza, { days: 60 })).toLocaleDateString("it-IT")}`} + + {/* */}
- - - {annuncioConfermato.length > 0 && (
@@ -256,15 +267,6 @@ export const ServizioContent = () => {
)}
-
- {openContattiAnnunci.map((data) => { - return ( - - - - ); - })} -
{annunciInConferma.map((data) => { return ( @@ -275,8 +277,8 @@ export const ServizioContent = () => { })}
-
- + +
@@ -284,7 +286,7 @@ export const ServizioContent = () => { } header={ <> - + } /> diff --git a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx index 89dec7a..817eb2d 100644 --- a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx +++ b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx @@ -32,13 +32,19 @@ export const ContattiProprietarioModal = () => { const { servizio } = useServizio(); const { data } = useServizioAnnuncio(); const { t } = useTranslation(); + + const isUnlocked = data.open_contatti_at != null; + const needsDocuments = + !servizio.skipControlloDoc && + (!servizio.doc_personale_fronte || !servizio.doc_personale_retro); + return ( {data.open_contatti_at != null ? ( )} - + - {t.contatto.title} + {t.contatto.title} {t.contatto.descrizione} - {servizio.doc_personale_fronte == null || - servizio.doc_personale_retro == null ? ( + {needsDocuments ? ( - // biome-ignore lint/style/noNestedTernary: - ) : data.open_contatti_at == null ? ( - - ) : ( + ) : isUnlocked ? ( + ) : ( + )} @@ -88,14 +92,22 @@ const DocComponent = ({ }) => { const { isAdmin, userId } = useServizio(); - if (!docInfo?.storageId) { - return ; + if (docInfo?.storageId) { + return ( +
+ + Documento caricato +
+ ); } + return ( -
- - Documento caricato -
+ ); }; @@ -103,7 +115,7 @@ const DocCheckpoint = () => { const { t } = useTranslation(); const { userId, servizio } = useServizio(); const utils = api.useUtils(); - const { mutate } = api.servizio.updateServizio.useMutation({ + const { mutate, isPending } = api.servizio.updateServizio.useMutation({ onSuccess: async () => { await utils.servizio.getAllServizioAnnunci.invalidate({ userId, @@ -117,37 +129,38 @@ const DocCheckpoint = () => { toast.error(`Errore aggiornamento servizio: ${err.message}`); }, }); + const handleUpload = ( + field: "doc_personale_fronte_ref" | "doc_personale_retro_ref", + id: string, + ) => { + mutate({ + servizioId: servizio.servizio_id, + data: { [field]: id }, + }); + }; return ( <>

Devi ancora caricare un tuo documento

-
- Fronte documento:{" "} +
+ Fronte documento: userStorageIds.length > 0 && - mutate({ - servizioId: servizio.servizio_id, - data: { - doc_personale_fronte_ref: userStorageIds[0], - }, - }) + userStorageIds[0] && + handleUpload("doc_personale_fronte_ref", userStorageIds[0]) } docInfo={servizio.doc_personale_fronte} />
-
- Retro documento:{" "} +
+ Retro documento: userStorageIds.length > 0 && - mutate({ - servizioId: servizio.servizio_id, - data: { - doc_personale_retro_ref: userStorageIds[0], - }, - }) + userStorageIds[0] && + handleUpload("doc_personale_retro_ref", userStorageIds[0]) } docInfo={servizio.doc_personale_retro} /> @@ -166,7 +179,7 @@ const DocCheckpoint = () => { - @@ -182,36 +195,37 @@ const PreUnlock = () => { const utils = api.useUtils(); - const { mutate } = api.servizio.unlockServizioContatti.useMutation({ - onError: (err) => { - toast.error(err.message, { - id: "unlock-contacts", - }); - }, - onMutate: () => { - toast.loading("Caricamento ...", { - id: "unlock-contacts", - }); - }, - onSuccess: async (data) => { - if (!data) { - toast.error("Limite di sblocchi raggiunto", { + const { mutate, isPending } = api.servizio.unlockServizioContatti.useMutation( + { + onError: (err) => { + toast.error(err.message, { id: "unlock-contacts", }); - return; - } - toast.success("Successo", { - id: "unlock-contacts", - }); - await utils.servizio.getAllServizioAnnunci.invalidate({ - userId, - }); + }, + onMutate: () => { + toast.loading("Caricamento ...", { + id: "unlock-contacts", + }); + }, + onSuccess: async (data) => { + if (!data) { + toast.error("Limite di sblocchi raggiunto", { + id: "unlock-contacts", + }); + return; + } + toast.success("Successo", { + id: "unlock-contacts", + }); + await utils.servizio.getAllServizioAnnunci.invalidate({ + userId, + }); + }, }, - }); + ); - const d = new Date(); - const tooEarly = d.getHours() < 9; - const tooLate = d.getHours() >= 20; + const currentHour = new Date().getHours(); + const isOutsideBusinessHours = currentHour < 9 || currentHour >= 20; return ( <> @@ -221,13 +235,12 @@ const PreUnlock = () => {

{t.contatto.disclaimer3}

- {(tooEarly || tooLate) && ( + {isOutsideBusinessHours && (
- {/*TODO testare */}

Il proprietario riceverà la notifica alle ore 9.00{" "} - {tooLate && "di domani"} + {currentHour >= 20 && "di domani"}

)} @@ -236,6 +249,7 @@ const PreUnlock = () => { - @@ -258,17 +276,13 @@ const PreUnlock = () => { }; function getNavigationUrl(lat: string, lon: string): string { - if (typeof window !== "undefined") { - const isIOS = - navigator.userAgent.toUpperCase().includes("MAC") || - navigator.userAgent.toUpperCase().includes("IPAD") || - navigator.userAgent.toUpperCase().includes("IPHONE") || - navigator.userAgent.toUpperCase().includes("IOS") || - navigator.userAgent.toUpperCase().includes("IPOD"); - - return `${isIOS ? "maps" : "https"}://www.google.com/maps/dir/?api=1&travelmode=driving&layer=traffic&destination=${lat},${lon}`; + if (typeof window === "undefined") { + return `https://www.google.com/maps/dir/?api=1&travelmode=driving&layer=traffic&destination=${lat},${lon}`; } - return `https://www.google.com/maps/dir/?api=1&travelmode=driving&layer=traffic&destination=${lat},${lon}`; + const isIOS = /iPad|iPhone|iPod|Mac/.test(navigator.userAgent); + const protocol = isIOS ? "maps" : "https"; + + return `${protocol}://www.google.com/maps/dir/?api=1&travelmode=driving&layer=traffic&destination=${lat},${lon}`; } const PostUnlock = () => { @@ -290,80 +304,86 @@ const PostUnlock = () => { if (isLoading) { return ( -
+ -
+
); } if (!data || !data.propData) { - return

{t.contatto.error}

; + return ( + +

{t.contatto.error}

+
+ ); } + const { opened_at, propData } = data; return ( <> - -
-

{t.contatto.propietario}:

-

- {t.contatto.nome}: {data.propData.locatore} -

-
- - : - - {data.propData.numero} - - - - - -
+ + {propData.numero} + + + + +
+ -
-

{t.contatto.immobile}:

-

- {t.contatto.indirizzo}: {data.propData.indirizzo},{" "} - {data.propData.civico} {data.propData.comune} ( - {data.propData.provincia}) -

- - {t.contatto.apri_nav} - -
-

- {t.contatto.sbloccato_il}:{" "} - {data.opened_at.toLocaleString("it", { - day: "2-digit", - hour: "2-digit", - minute: "2-digit", - month: "2-digit", - year: "numeric", - })} -

-
- -
-

{t.contatto.contatta}

-

{t.contatto.orari}

+ {/* Immobile Section */} +
+

{t.contatto.immobile}:

+

+ {t.contatto.indirizzo}: {propData.indirizzo}, {propData.civico}{" "} + {propData.comune} ({propData.provincia}) +

+ {navigationUrl && ( + + + {t.contatto.apri_nav} + + )} +
+ + {/* Warning */} +
+ +
+

{t.contatto.contatta}

+

{t.contatto.orari}

+ + {/* Metadata */} +

+ {t.contatto.sbloccato_il}:{" "} + {opened_at.toLocaleString("it", { + day: "2-digit", + month: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + })} +

diff --git a/apps/infoalloggi/src/components/servizio/servizio_actions.tsx b/apps/infoalloggi/src/components/servizio/servizio_actions.tsx index 4b003bc..3d47e4d 100644 --- a/apps/infoalloggi/src/components/servizio/servizio_actions.tsx +++ b/apps/infoalloggi/src/components/servizio/servizio_actions.tsx @@ -1,5 +1,5 @@ import { add } from "date-fns"; -import { Bug, Calculator, ClockAlert, Plus, Wrench } from "lucide-react"; +import { Bug, Calculator, ClockAlert, Plus, ShieldUser } from "lucide-react"; import { useState } from "react"; import toast from "react-hot-toast"; import { @@ -50,7 +50,7 @@ import type { ServizioServizioId } from "~/schemas/public/Servizio"; import type { UsersId } from "~/schemas/public/Users"; import { api } from "~/utils/api"; -export const ServizioActions2 = () => { +export const ServizioActions = () => { const { servizio, isAdmin, userId } = useServizio(); const canUserEdit = @@ -65,7 +65,7 @@ export const ServizioActions2 = () => {
{(isAdmin || canUserEdit) && (
- Azioni: + {/* Azioni: */}
@@ -123,7 +123,7 @@ export const AddAnnuncio = ({ @@ -288,12 +287,9 @@ const EditPreferenze = () => { return ( - @@ -352,11 +348,8 @@ const EditServizioAdmin = () => { return ( - @@ -375,7 +368,7 @@ const EditServizioAdmin = () => { )} - diff --git a/apps/infoalloggi/src/components/servizio/servizio_annunci_accordions.tsx b/apps/infoalloggi/src/components/servizio/servizio_annunci_accordions.tsx index dd9c808..658a6c8 100644 --- a/apps/infoalloggi/src/components/servizio/servizio_annunci_accordions.tsx +++ b/apps/infoalloggi/src/components/servizio/servizio_annunci_accordions.tsx @@ -56,7 +56,7 @@ const DialogServizio = ({ ); }; -export const AnnunciInConferma = ({ +export const AnnunciInConfermaDialog = ({ annunci, }: { annunci: ServizioData["annunci"]; @@ -74,11 +74,10 @@ export const AnnunciInConferma = ({ > Annunci in conferma - {annunci.length > 0 && ( - - {annunci.length} - - )} + + + {annunci.length || 0} +
} > @@ -95,7 +94,7 @@ export const AnnunciInConferma = ({ ); }; -export const AnnunciSelezionati = ({ +export const AnnunciSelezionatiDialog = ({ annunci, }: { annunci: ServizioData["annunci"]; @@ -112,11 +111,10 @@ export const AnnunciSelezionati = ({ > Annunci selezionati - {annunci.length > 0 && ( - - {annunci.length} - - )} + + + {annunci.length || 0} +
} > @@ -149,6 +147,79 @@ export const AnnunciSelezionati = ({ ); }; +export const AnnunciInConfermaAccordion = ({ + annunci, +}: { + annunci: ServizioData["annunci"]; +}) => { + if (annunci.length === 0) { + return null; // If there are no announcements in confirmation, do not render this section + } + + return ( + + + + Annunci in conferma: + + +
+ {annunci.map((data) => { + return ( + + + + ); + })} +
+
+
+
+ ); +}; + +export const AnnunciSelezionatiAccordion = ({ + annunci, +}: { + annunci: ServizioData["annunci"]; +}) => { + return ( + + + + Annunci Selezionati: + + +
+ {annunci.length > 0 ? ( + annunci.map((data) => { + return ( + + + + ); + }) + ) : ( +
+ + Nessun annuncio selezionato, fai una ricerca nella pagina{" "} + + Annunci + + + +
+ )} +
+
+
+
+ ); +}; export const AnnunciCompatibili = () => { const { servizioId, userId, isAdmin } = useServizio(); const { data, isLoading } = api.servizio.getCompatibileAnnunci.useQuery({ @@ -163,16 +234,9 @@ export const AnnunciCompatibili = () => { - - {data && data.length > 0 && ( - - {data?.length} - - )} -
+ } >
@@ -254,7 +318,6 @@ export const AnnunciRichiesti = ({ userId }: { userId: UsersId }) => { data={a} interactions={ diff --git a/apps/infoalloggi/src/components/tables/orders-table.tsx b/apps/infoalloggi/src/components/tables/orders-table.tsx index 20fc205..478777a 100644 --- a/apps/infoalloggi/src/components/tables/orders-table.tsx +++ b/apps/infoalloggi/src/components/tables/orders-table.tsx @@ -166,7 +166,6 @@ export const OrdiniTable = ({ data, isAdmin, userId }: PaymentsTableProps) => { return ( @@ -259,28 +254,19 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithImages }) => { href={`/area-riservata/admin/scheda-annuncio-stampa/${data.id}`} target="_blank" > - - diff --git a/apps/infoalloggi/src/forms/FormEditServizioAdmin.tsx b/apps/infoalloggi/src/forms/FormEditServizioAdmin.tsx index d0daff0..6c10ae5 100644 --- a/apps/infoalloggi/src/forms/FormEditServizioAdmin.tsx +++ b/apps/infoalloggi/src/forms/FormEditServizioAdmin.tsx @@ -182,7 +182,6 @@ export const FormEditServizio = ({
{tipologia === TipologiaPosizioneEnum.Transitorio ? ( - <> +
m.id === field.value, ); - return ( - -
+ +
{t.preferenze.motivazione_label} @@ -736,7 +740,6 @@ export const FormNewServizioAcquisto = ({ )} placeholder={t.seleziona_placeholder} /> - {t.preferenze.motivazione_desc} @@ -794,7 +797,7 @@ export const FormNewServizioAcquisto = ({ )} /> - +
) : ( { -
+
{t.annunci.titolo}
diff --git a/apps/infoalloggi/src/pages/annuncio/[cod].tsx b/apps/infoalloggi/src/pages/annuncio/[cod].tsx index 95ca306..1734243 100644 --- a/apps/infoalloggi/src/pages/annuncio/[cod].tsx +++ b/apps/infoalloggi/src/pages/annuncio/[cod].tsx @@ -150,7 +150,7 @@ const AnnuncioView = ({ cod, flag }: Omit) => { href={`/area-riservata/admin/edit-annuncio/${data.id}`} > diff --git a/apps/infoalloggi/src/pages/area-riservata/admin/annunci.tsx b/apps/infoalloggi/src/pages/area-riservata/admin/annunci.tsx index b6424c6..214c4ba 100644 --- a/apps/infoalloggi/src/pages/area-riservata/admin/annunci.tsx +++ b/apps/infoalloggi/src/pages/area-riservata/admin/annunci.tsx @@ -53,17 +53,13 @@ const Admin_Annunci: NextPageWithLayout = () => { - diff --git a/apps/infoalloggi/src/pages/area-riservata/admin/banners.tsx b/apps/infoalloggi/src/pages/area-riservata/admin/banners.tsx index 9b743d1..21e5340 100644 --- a/apps/infoalloggi/src/pages/area-riservata/admin/banners.tsx +++ b/apps/infoalloggi/src/pages/area-riservata/admin/banners.tsx @@ -61,7 +61,7 @@ const AdminBanners: NextPageWithLayout = () => {
diff --git a/apps/infoalloggi/src/pages/servizio/pre-onboard/[servizioId].tsx b/apps/infoalloggi/src/pages/servizio/pre-onboard/[servizioId].tsx index 246d7e8..176fa76 100644 --- a/apps/infoalloggi/src/pages/servizio/pre-onboard/[servizioId].tsx +++ b/apps/infoalloggi/src/pages/servizio/pre-onboard/[servizioId].tsx @@ -65,7 +65,7 @@ const PreOnboardServizio: NextPageWithLayout = ({