fix: Carousel
This commit is contained in:
parent
9fb9623671
commit
682d792cb8
2 changed files with 3 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { getTitoloTranslation } from "~/lib/annuncio_details";
|
import { getTitoloTranslation } from "~/lib/annuncio_details";
|
||||||
import CardAnnuncio from "~/components/annuncio_card";
|
import { CardAnnuncio } from "~/components/annuncio_card";
|
||||||
import { useTranslation } from "~/providers/I18nProvider";
|
import { useTranslation } from "~/providers/I18nProvider";
|
||||||
import type { AnnuncioRicerca } from "~/server/controllers/annunci.controller";
|
import type { AnnuncioRicerca } from "~/server/controllers/annunci.controller";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ type CardAnnuncioProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const CardAnnuncio = ({
|
export const CardAnnuncio = ({
|
||||||
id,
|
id,
|
||||||
codice,
|
codice,
|
||||||
prezzo,
|
prezzo,
|
||||||
|
|
@ -203,8 +203,6 @@ const CardAnnuncio = ({
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default CardAnnuncio;
|
|
||||||
|
|
||||||
export const CarouselAnnuncio = ({
|
export const CarouselAnnuncio = ({
|
||||||
single,
|
single,
|
||||||
immagini,
|
immagini,
|
||||||
|
|
@ -223,7 +221,7 @@ export const CarouselAnnuncio = ({
|
||||||
<>
|
<>
|
||||||
<div className="mx-auto my-4 w-full rounded-md text-clip">
|
<div className="mx-auto my-4 w-full rounded-md text-clip">
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<Carousel opts={{ loop: true }}>
|
<Carousel opts={{ loop: true, align: "start" }}>
|
||||||
<CarouselContent>
|
<CarouselContent>
|
||||||
{immagini &&
|
{immagini &&
|
||||||
immagini.map((img, idx) => (
|
immagini.map((img, idx) => (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue