فهرست منبع

♻️ refactor(order-submit): replace native img with Image component

- use custom Image component instead of native img tag for product images
- maintain same styling and aspect ratio through className and mode props
yourname 3 ماه پیش
والد
کامیت
5b116cd763
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      mini/src/pages/order-submit/index.tsx

+ 2 - 1
mini/src/pages/order-submit/index.tsx

@@ -9,6 +9,7 @@ import { Card } from '@/components/ui/card'
 import { Button } from '@/components/ui/button'
 import { useAuth } from '@/utils/auth'
 import { useCart } from '@/utils/cart'
+import { Image } from '@/components/ui/image'
 
 type AddressResponse = InferResponseType<typeof deliveryAddressClient.$get, 200>
 type Address = AddressResponse['data'][0]
@@ -214,7 +215,7 @@ export default function OrderSubmitPage() {
               
               {orderItems.map((item) => (
                 <View key={item.id} className="flex items-center py-3 border-b border-gray-100 last:border-b-0">
-                  <img
+                  <Image
                     src={item.image}
                     className="w-16 h-16 rounded-lg mr-3"
                     mode="aspectFill"