diff --git a/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx b/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx index f1d2dcc..2402cce 100644 --- a/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx +++ b/apps/infoalloggi/src/components/servizio/annuncio_actions.tsx @@ -96,7 +96,7 @@ export const AnnuncioActions = () => { variant="destructive" > - Elimina Annuncio + Elimina diff --git a/apps/infoalloggi/src/components/servizio/annuncio_card.tsx b/apps/infoalloggi/src/components/servizio/annuncio_card.tsx index 809d9fc..00750b4 100644 --- a/apps/infoalloggi/src/components/servizio/annuncio_card.tsx +++ b/apps/infoalloggi/src/components/servizio/annuncio_card.tsx @@ -42,14 +42,14 @@ export const BasicAnnuncioCard = ({ const { t } = useTranslation(); return ( - + Annuncio {data.codice} {actions} -
-
+
+
{data.codice}{data.titolo_it}
-
- - +
+ + {handleConsegna({ aggiornamento: t.card.in_aggiornamento, consegna: data.consegna, diff --git a/apps/infoalloggi/src/components/servizio/annuncio_dettaglio.tsx b/apps/infoalloggi/src/components/servizio/annuncio_dettaglio.tsx index ce7d65a..d52cf2a 100644 --- a/apps/infoalloggi/src/components/servizio/annuncio_dettaglio.tsx +++ b/apps/infoalloggi/src/components/servizio/annuncio_dettaglio.tsx @@ -18,7 +18,13 @@ import { import { Badge } from "../ui/badge"; import { Button } from "../ui/button"; -export const TipoBadge = ({ tipo }: { tipo: Annunci["tipo"] }) => { +export const TipoBadge = ({ + tipo, + mini, +}: { + tipo: Annunci["tipo"]; + mini?: boolean; +}) => { return ( { tipo === "Vendita" && "bg-green-400", )} > - Affitto {tipo} + {!mini && "Affitto"} {tipo} ); }; @@ -43,7 +49,6 @@ export const AnnuncioDettaglio = ({ data }: { data: AnnuncioRicerca }) => { @@ -213,8 +213,11 @@ export const ConfermaInLavorazioneModal = () => { return ( - diff --git a/apps/infoalloggi/src/components/servizio/interactions.tsx b/apps/infoalloggi/src/components/servizio/interactions.tsx index 9cfff27..3ce5795 100644 --- a/apps/infoalloggi/src/components/servizio/interactions.tsx +++ b/apps/infoalloggi/src/components/servizio/interactions.tsx @@ -38,8 +38,8 @@ const SezioneConferma = () => { aria-label="Conferma immobile" href={`/servizio/riapri-conferma/${servizioId}/${annuncioId}`} > - @@ -52,8 +52,8 @@ const SezioneConferma = () => { aria-label="Conferma immobile" href={`/servizio/conferma-immobile/${servizioId}/${annuncioId}`} > - @@ -64,10 +64,10 @@ const SezioneConferma = () => { @@ -127,8 +127,8 @@ const PostConfermaSection = () => { href={`/servizio/contratto/${servizioId}/${annuncioId}`} target="_blank" > - @@ -137,7 +137,7 @@ const PostConfermaSection = () => { @@ -159,7 +159,7 @@ const PostConfermaSection = () => { target="_blank" > @@ -168,7 +168,7 @@ const PostConfermaSection = () => { @@ -190,7 +190,7 @@ export const Interactions = () => { const { data } = useServizioAnnuncio(); return ( -
+
@@ -236,7 +236,7 @@ export const SaldoButton = ({ }} variant={variant} > - + Procedi al saldo ); @@ -277,7 +277,7 @@ const SaldoConsulenzaButton = ({ }} variant={variant} > - + Procedi al saldo della consulenza ); diff --git a/apps/infoalloggi/src/components/servizio/main.tsx b/apps/infoalloggi/src/components/servizio/main.tsx index 2a5bcf6..78a4dca 100644 --- a/apps/infoalloggi/src/components/servizio/main.tsx +++ b/apps/infoalloggi/src/components/servizio/main.tsx @@ -22,10 +22,7 @@ import { import { api } from "~/utils/api"; import { AlarmClockSVG } from "../svgs"; import { AnnunciCompatibili } from "./compatibili_dialog"; -import { - AnnunciSelezionatiAccordion, - AnnunciSelezionatiDialog, -} from "./servizio_annunci_accordions"; +import { AnnunciSelezionatiDialog } from "./servizio_annunci_accordions"; const ServizioCard = ({ cardClassName, @@ -43,7 +40,7 @@ const ServizioCard = ({ return ( @@ -270,8 +267,29 @@ export const ServizioContent = () => { })}
{annunciSelezionati.length > 0 && ( - +
+

+ Annunci selezionati: +

+
+ {annunciSelezionati.map((data) => { + return ( + + + + ); + })} +
+
)} + {/* {annunciSelezionati.length > 0 && ( + + )} */}
diff --git a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx index 61d8dca..81a4b24 100644 --- a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx +++ b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx @@ -52,8 +52,8 @@ export const ContattiProprietarioModal = () => { className="w-full md:w-fit" variant="success" > - - Vedi i contatti + + Contatti ) : ( )}