|
@@ -59,7 +59,7 @@ export default function ShippingMethod({
|
|
|
const selectedRate = shippingMethod?.find(m => m.method === data.method);
|
|
const selectedRate = shippingMethod?.find(m => m.method === data.method);
|
|
|
if (selectedRate) {
|
|
if (selectedRate) {
|
|
|
dispatch(updateCart({
|
|
dispatch(updateCart({
|
|
|
- shippingMethod: selectedRate?.method || "",
|
|
|
|
|
|
|
+ // shippingMethod: selectedRate?.method || "",
|
|
|
selectedShippingRate: selectedRate?.method || "",
|
|
selectedShippingRate: selectedRate?.method || "",
|
|
|
selectedShippingRateTitle: selectedRate?.label || "",
|
|
selectedShippingRateTitle: selectedRate?.label || "",
|
|
|
}));
|
|
}));
|
|
@@ -198,7 +198,7 @@ export default function ShippingMethod({
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const CustomRadio = (props: CustomRadioProps) => {
|
|
const CustomRadio = (props: CustomRadioProps) => {
|
|
|
- const { children, ...otherProps } = props;
|
|
|
|
|
|
|
+ const { children, className, ...otherProps } = props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<Radio
|
|
<Radio
|
|
@@ -207,7 +207,8 @@ const CustomRadio = (props: CustomRadioProps) => {
|
|
|
base: cn(
|
|
base: cn(
|
|
|
"inline-flex m-0 bg-transparent hover:bg-transparent items-center",
|
|
"inline-flex m-0 bg-transparent hover:bg-transparent items-center",
|
|
|
"flex-row items-baseline max-w-full cursor-pointer rounded-lg gap-4 p-4 border-2 border-transparent",
|
|
"flex-row items-baseline max-w-full cursor-pointer rounded-lg gap-4 p-4 border-2 border-transparent",
|
|
|
- "data-[selected=true]:border-primary"
|
|
|
|
|
|
|
+ "data-[selected=true]:border-primary",
|
|
|
|
|
+ className
|
|
|
),
|
|
),
|
|
|
hiddenInput: "peer absolute h-0 w-0 opacity-0",
|
|
hiddenInput: "peer absolute h-0 w-0 opacity-0",
|
|
|
}}
|
|
}}
|