fix design bug
This commit is contained in:
@@ -65,7 +65,7 @@ export const CarAddressSection = () => {
|
||||
value={carAddress?.carColor || ''}
|
||||
onChange={handleCarColorChange}
|
||||
className="bg-inherit"
|
||||
inputClassName="text-xs"
|
||||
inputClassName="text-xs!"
|
||||
|
||||
/>
|
||||
<InputField
|
||||
@@ -75,7 +75,7 @@ export const CarAddressSection = () => {
|
||||
value={carAddress?.plateNumber || ''}
|
||||
onChange={handlePlateNumberChange}
|
||||
className="bg-inherit"
|
||||
inputClassName="text-xs"
|
||||
inputClassName="text-xs!"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import Combobox from '@/components/combobox/Combobox';
|
||||
import { Box, Location, Car, TruckTick, Building } from 'iconsax-react';
|
||||
import { Box, Location, Car, Building } from 'iconsax-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useGetShipmentMethod } from '../../hooks/useOrderData';
|
||||
import { DeliveryMethod } from '../../types/Types';
|
||||
@@ -33,19 +33,27 @@ export const ShippingSection = ({ deliveryType, onDeliveryTypeChange }: Shipping
|
||||
case 'deliveryCar':
|
||||
return Car;
|
||||
case 'deliveryCourier':
|
||||
return TruckTick;
|
||||
return undefined;
|
||||
default:
|
||||
return Box;
|
||||
}
|
||||
};
|
||||
|
||||
const getDeliveryMethodImage = (method: string) => {
|
||||
if (method === 'deliveryCourier') {
|
||||
return '/assets/images/fast-delivery.svg';
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
const options = shipmentMethod?.data
|
||||
.filter((item: DeliveryMethod) => item.enabled)
|
||||
.sort((a: DeliveryMethod, b: DeliveryMethod) => a.order - b.order)
|
||||
.map((item: DeliveryMethod) => ({
|
||||
id: item.id,
|
||||
title: getDeliveryMethodTranslation(item.method),
|
||||
icon: getDeliveryMethodIcon(item.method)
|
||||
icon: getDeliveryMethodIcon(item.method),
|
||||
imagePath: getDeliveryMethodImage(item.method)
|
||||
})) || [];
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user