fix url search + active return product
This commit is contained in:
@@ -78,10 +78,10 @@ const OrderDetail: FC = () => {
|
||||
<div className="text-lg font-semibold">جزئیات سفارش</div>
|
||||
</div>
|
||||
|
||||
{/* <div className='flex gap-2 items-center cursor-pointer' onClick={() => router.push(`/profile/orders/${id}/return`)}>
|
||||
<div className='flex gap-2 items-center cursor-pointer' onClick={() => router.push(`/profile/orders/${id}/return`)}>
|
||||
<TaskSquare color={PRIMARY_COLOR} size={20} />
|
||||
<div className='text-primary'>فرم درخواست مرجوعی</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{cancelOrderMutation.isPending ? (
|
||||
|
||||
@@ -103,7 +103,7 @@ const DesktopSearch: FC = () => {
|
||||
{searchResults.results.products.map((product) => (
|
||||
<div
|
||||
key={product._id}
|
||||
onClick={() => handleProductClick(product.url)}
|
||||
onClick={() => handleProductClick(`/product/${product._id}`)}
|
||||
className='flex items-center gap-3 px-4 py-3 hover:bg-gray-50 cursor-pointer transition-colors'
|
||||
>
|
||||
<div className='w-[50px] h-[50px] flex-shrink-0'>
|
||||
|
||||
@@ -59,7 +59,7 @@ const MobileSearch: FC = () => {
|
||||
{searchResults.results.products.map((product) => (
|
||||
<div
|
||||
key={product._id}
|
||||
onClick={() => handleProductClick(product.url)}
|
||||
onClick={() => handleProductClick(`/product/${product._id}`)}
|
||||
className='flex items-center gap-3 px-4 py-3 border-b border-gray-100 active:bg-gray-50'
|
||||
>
|
||||
<div className='w-[60px] h-[60px] flex-shrink-0'>
|
||||
|
||||
Reference in New Issue
Block a user