From 105c38499456ad4ea5942c26afe52ac4ca090516 Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Sat, 24 Jan 2026 17:23:50 +0500 Subject: [PATCH] bug fix --- src/features/about/ui/AboutContent.tsx | 1 + src/features/about/ui/AboutHero.tsx | 1 + src/features/cart/ui/CartPage.tsx | 3 ++- src/features/cart/ui/OrderPage.tsx | 1 + src/features/category/ui/Category.tsx | 1 + src/features/product/ui/Product.tsx | 2 ++ src/features/profile/ui/Orders.tsx | 1 + src/features/profile/ui/RefreshOrder.tsx | 1 + src/widgets/categories/ui/animation.tsx | 1 + src/widgets/categories/ui/product-card.tsx | 1 + src/widgets/footer/ui/index.tsx | 1 + src/widgets/navbar/ui/ChangeLang.tsx | 2 ++ src/widgets/navbar/ui/MobileLanguageSelector.tsx | 2 ++ src/widgets/navbar/ui/SearchResult.tsx | 1 + src/widgets/navbar/ui/index.tsx | 3 +++ src/widgets/welcome/ui/index.tsx | 2 ++ 16 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/features/about/ui/AboutContent.tsx b/src/features/about/ui/AboutContent.tsx index b58b806..782e134 100644 --- a/src/features/about/ui/AboutContent.tsx +++ b/src/features/about/ui/AboutContent.tsx @@ -99,6 +99,7 @@ export function AboutContent() { height={500} src={image.url || '/placeholder.svg'} alt={image.alt} + unoptimized className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110" /> diff --git a/src/features/about/ui/AboutHero.tsx b/src/features/about/ui/AboutHero.tsx index 7df4c69..6e08536 100644 --- a/src/features/about/ui/AboutHero.tsx +++ b/src/features/about/ui/AboutHero.tsx @@ -9,6 +9,7 @@ export function AboutHero() { Gastro Market { const { cart_id } = useCartId(); @@ -167,6 +167,7 @@ const CartPage = () => { alt={item.product.name} width={500} height={500} + unoptimized className="object-cover" style={{ width: '100%', height: '100%' }} /> diff --git a/src/features/cart/ui/OrderPage.tsx b/src/features/cart/ui/OrderPage.tsx index 1585276..a080ebb 100644 --- a/src/features/cart/ui/OrderPage.tsx +++ b/src/features/cart/ui/OrderPage.tsx @@ -560,6 +560,7 @@ const OrderPage = () => { { src={BASE_URL + category.image} alt={category.name} width={70} + unoptimized height={70} /> diff --git a/src/features/product/ui/Product.tsx b/src/features/product/ui/Product.tsx index bf287d3..202f8f6 100644 --- a/src/features/product/ui/Product.tsx +++ b/src/features/product/ui/Product.tsx @@ -165,6 +165,7 @@ const ProductDetail = () => {
{ { > {item.name} { height={500} src={item.product_image} alt={item.product_name} + unoptimized className="w-16 h-16 object-contain bg-gray-100 rounded" />
diff --git a/src/widgets/categories/ui/animation.tsx b/src/widgets/categories/ui/animation.tsx index a5886bf..7453eb7 100644 --- a/src/widgets/categories/ui/animation.tsx +++ b/src/widgets/categories/ui/animation.tsx @@ -195,6 +195,7 @@ const Animation: React.FC = ({ } width={500} height={500} + unoptimized alt={product.name} className="w-full h-full object-contain p-3" /> diff --git a/src/widgets/categories/ui/product-card.tsx b/src/widgets/categories/ui/product-card.tsx index 8dba477..729c502 100644 --- a/src/widgets/categories/ui/product-card.tsx +++ b/src/widgets/categories/ui/product-card.tsx @@ -222,6 +222,7 @@ export function ProductCard({ : LogosProduct } alt={product.name} + unoptimized className="object-cover" />
diff --git a/src/widgets/footer/ui/index.tsx b/src/widgets/footer/ui/index.tsx index e539b45..e3d6d28 100644 --- a/src/widgets/footer/ui/index.tsx +++ b/src/widgets/footer/ui/index.tsx @@ -31,6 +31,7 @@ const Footer = () => { src={'/logos/logo-white.png'} alt={PRODUCT_INFO.name} title={PRODUCT_INFO.name} + unoptimized className="h-10 w-10" />
diff --git a/src/widgets/navbar/ui/ChangeLang.tsx b/src/widgets/navbar/ui/ChangeLang.tsx index 26d7651..d6f7c97 100644 --- a/src/widgets/navbar/ui/ChangeLang.tsx +++ b/src/widgets/navbar/ui/ChangeLang.tsx @@ -40,6 +40,7 @@ export function ChangeLang() { alt="uz" width={20} height={20} + unoptimized className="object-cover w-full h-full" /> ) : ( @@ -47,6 +48,7 @@ export function ChangeLang() { src="/flags/ru.png" alt="ru" width={20} + unoptimized height={20} className="object-cover w-full h-full" /> diff --git a/src/widgets/navbar/ui/MobileLanguageSelector.tsx b/src/widgets/navbar/ui/MobileLanguageSelector.tsx index 35a5945..abac927 100644 --- a/src/widgets/navbar/ui/MobileLanguageSelector.tsx +++ b/src/widgets/navbar/ui/MobileLanguageSelector.tsx @@ -44,6 +44,7 @@ export const MobileLanguageSelector = () => { alt={currentLanguage?.key || 'language'} width={24} height={24} + unoptimized className="object-cover w-full h-full" /> @@ -64,6 +65,7 @@ export const MobileLanguageSelector = () => { src={lang.key === 'uz' ? '/flags/uz.png' : '/flags/ru.png'} alt={lang.key} width={20} + unoptimized height={20} className="object-cover w-full h-full" /> diff --git a/src/widgets/navbar/ui/SearchResult.tsx b/src/widgets/navbar/ui/SearchResult.tsx index c1dbcb5..e3a6092 100644 --- a/src/widgets/navbar/ui/SearchResult.tsx +++ b/src/widgets/navbar/ui/SearchResult.tsx @@ -120,6 +120,7 @@ export const SearchResult = ({ query }: SearchResultProps) => { alt={product.name} width={64} height={64} + unoptimized className="w-16 h-16 rounded-md object-contain bg-white border border-slate-100" /> diff --git a/src/widgets/navbar/ui/index.tsx b/src/widgets/navbar/ui/index.tsx index ebaa29b..d9f047e 100644 --- a/src/widgets/navbar/ui/index.tsx +++ b/src/widgets/navbar/ui/index.tsx @@ -231,6 +231,7 @@ const Navbar = () => { src="/logos/logo.png" alt="logo" width={40} + unoptimized height={20} className="w-10 h-fit" /> @@ -257,6 +258,7 @@ const Navbar = () => {
logo { {e.name}
diff --git a/src/widgets/welcome/ui/index.tsx b/src/widgets/welcome/ui/index.tsx index c151b50..53dfdf4 100644 --- a/src/widgets/welcome/ui/index.tsx +++ b/src/widgets/welcome/ui/index.tsx @@ -141,6 +141,7 @@ const Welcome = () => { src={BASE_URL + banner.banner} alt={banner.id} width={900} + unoptimized height={900} className="object-cover w-full h-full" /> @@ -183,6 +184,7 @@ const Welcome = () => { banner.image ? BASE_URL + banner.image : CategoryImage } alt={banner.name} + unoptimized width={500} height={500} className="w-full h-16 object-contain"