|
|
@@ -11,19 +11,19 @@ import {useSaveCheckoutCart} from "@/utils/hooks/useSaveCheckoutCart";
|
|
|
import { usePlaceOrder } from "@/utils/hooks/usePlaceOrder";
|
|
|
import {usePaymentSDKContext} from "@/providers/PaymentSDKProvider";
|
|
|
import {airwallexManager} from "@/lib/Airwallex/useAirwallexCard";
|
|
|
-import {
|
|
|
+import type {
|
|
|
PlaceOrderResult,
|
|
|
PlaceOrderFunction,
|
|
|
CreatePaymentInitiateVariables
|
|
|
} from "@/types/checkout/type";
|
|
|
-import { CartDetail,CartAddress } from "@/types/cart/type";
|
|
|
+import type { CartDetail,CartAddress } from "@/types/cart/type";
|
|
|
import { formatCartDetail } from "@/utils/cartDetailTools";
|
|
|
import { overlayLoading } from "@/components/theme/ui/kernel/loading/api";
|
|
|
import { confirmDialog } from "@/components/theme/ui/kernel/confirm/api";
|
|
|
-import {ShippingMethodCheckout,RefShippingMethodsHandle} from "./ShippingMethodCheckout";
|
|
|
-import {PaymentMethodCheckout,RefPaymentMethodsHandle} from "./PaymentMethodCheckout";
|
|
|
+import {ShippingMethodCheckout, type RefShippingMethodsHandle} from "./ShippingMethodCheckout";
|
|
|
+import {PaymentMethodCheckout,type RefPaymentMethodsHandle} from "./PaymentMethodCheckout";
|
|
|
import LoadingPaymentMethod from "./LoadingPaymentMethod";
|
|
|
-import {CheckoutAddress, RefCheckoutAddressHandle} from "./CheckoutAddress/CheckoutAssress";
|
|
|
+import {CheckoutAddress, type RefCheckoutAddressHandle} from "./CheckoutAddress/CheckoutAssress";
|
|
|
import LoadingCheckoutPlaceOrder from "./LoadingCheckoutPlaceOrder";
|
|
|
import CheckoutPlaceOrder from "./CheckoutPlaceOrder";
|
|
|
import PaypalApplepayButton from "./PaymentButton/PaypalApplepayButton";
|