diff --git a/components/home-page/why-choose.tsx b/components/home-page/why-choose.tsx index 2c9c885e7..f5c191f16 100644 --- a/components/home-page/why-choose.tsx +++ b/components/home-page/why-choose.tsx @@ -29,6 +29,7 @@ const WhyChoose = async () => { fileId={reason.file as string} title={(reason.title || reason.name) as string} className="h-[60px] w-[60px]" + sizes="60px" />
diff --git a/components/manufacturers-grid/index.tsx b/components/manufacturers-grid/index.tsx index 190e74bdd..bd309f71e 100644 --- a/components/manufacturers-grid/index.tsx +++ b/components/manufacturers-grid/index.tsx @@ -21,7 +21,7 @@ const ManufacturersGrid = ({ manufacturers, variant = 'home' }: ManufacturersGri

{popularManufacturers.map((manufacturer) => ( -
+
{variant === 'home' && }
@@ -36,7 +36,7 @@ const ManufacturersGrid = ({ manufacturers, variant = 'home' }: ManufacturersGri {manufacturers .toSorted((a, b) => a.display_name!.localeCompare(b.display_name!)) .map((manufacturer) => ( -
+
{variant === 'home' && }
diff --git a/components/manufacturers-grid/item.tsx b/components/manufacturers-grid/item.tsx index 1db5a52ef..8a4130e8f 100644 --- a/components/manufacturers-grid/item.tsx +++ b/components/manufacturers-grid/item.tsx @@ -18,7 +18,8 @@ const ManufacturerItem = ({
diff --git a/components/page/image-display.tsx b/components/page/image-display.tsx index 0a49b79a7..465deaccb 100644 --- a/components/page/image-display.tsx +++ b/components/page/image-display.tsx @@ -8,10 +8,11 @@ const ImageDisplay = async ({ className, ...props }: { - fileId: string; + fileId?: string; title: string; className?: string; } & Omit, 'src' | 'alt'>) => { + if (!fileId) return null; const image = await getImage(fileId); return (