From 7a2e3eb862ebc10618d5b6ac9d9af112e454c6ea Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Mon, 3 Nov 2025 15:50:40 +0100 Subject: [PATCH] refactor(annunci_grid): Simplify CardAnnuncio props by spreading pagedata --- .../src/components/annunci_grid.tsx | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/apps/infoalloggi/src/components/annunci_grid.tsx b/apps/infoalloggi/src/components/annunci_grid.tsx index 7cfc50d..12b4c03 100644 --- a/apps/infoalloggi/src/components/annunci_grid.tsx +++ b/apps/infoalloggi/src/components/annunci_grid.tsx @@ -4,32 +4,10 @@ import { useTranslation } from "~/providers/I18nProvider"; import type { AnnuncioRicerca } from "~/server/controllers/annunci.controller"; export const AnnunciGrid = ({ pagedata }: { pagedata: AnnuncioRicerca[] }) => { - const { locale } = useTranslation(); - return (
{pagedata.map((annuncio) => ( - + ))}
);