diff --git a/src/app/cart/components/ShippingMethodSelector.tsx b/src/app/cart/components/ShippingMethodSelector.tsx index f97c819..4796e7d 100644 --- a/src/app/cart/components/ShippingMethodSelector.tsx +++ b/src/app/cart/components/ShippingMethodSelector.tsx @@ -1,7 +1,8 @@ 'use client' -import { useState, useEffect } from 'react' +import { useState } from 'react' +import Image from 'next/image' import { Truck, Sort, Flash } from 'iconsax-react' -import { ShopShippingType, ShipmentInfoType, ShipperType } from '../types/Types' +import { ShopShippingType, ShipperType } from '../types/Types' interface ShippingMethodSelectorProps { shippingData: ShopShippingType[] @@ -51,15 +52,6 @@ const ShippingMethodSelector = ({ }) } - // هندلر تغییر مرتبسازی - const handleSortChange = (newSortBy: 'price' | 'time' | 'default') => { - if (sortBy === newSortBy) { - setSortOrder(sortOrder === 'asc' ? 'desc' : 'asc') - } else { - setSortBy(newSortBy) - setSortOrder('asc') - } - } // هندلر toggle محصولات فروشگاه const toggleShopExpansion = (shopId: string) => { @@ -106,7 +98,7 @@ const ShippingMethodSelector = ({ return (
@@ -189,7 +181,7 @@ const ShippingMethodSelector = ({