load fast
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-06 09:08:38 +03:30
parent ace6a0b288
commit e68543f869
12 changed files with 255 additions and 248 deletions
@@ -70,7 +70,19 @@ function CategoryImage({
);
}
return <img src={src} width={size} height={size} alt={alt} loading="lazy" />;
return (
// eslint-disable-next-line @next/next/no-img-element
<img
src={src}
width={size}
height={size}
alt={alt}
loading="lazy"
onError={(event) => {
event.currentTarget.src = "/assets/images/food-image.png";
}}
/>
);
}
type Variant = "large" | "small";