From 00ba9833becbea5b25c6aafcb95b327d8adef4e3 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Mon, 3 Mar 2025 14:41:44 +0700
Subject: delete comment

---
 src/lib/checkout/components/Checkout.jsx | 65 --------------------------------
 1 file changed, 65 deletions(-)

(limited to 'src/lib/checkout/components/Checkout.jsx')

diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx
index 1a7fdc03..d5c370bf 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -332,71 +332,6 @@ const Checkout = () => {
     setHasFlashSale(hasFlashSale);
   }, [cartCheckout]);
 
-  // useEffect(() => {
-  //   setCheckoutValidation(false);
-  //   const loadServiceRajaOngkir = async () => {
-  //     setLoadingRajaOngkir(true);
-  //     const body = {
-  //       origin: 2127,
-  //       destination: selectedAddress.shipping.rajaongkirCityId,
-  //       weight: totalWeight,
-  //       courier: selectedCarrier,
-  //       originType: 'subdistrict',
-  //       destinationType: 'subdistrict',
-  //     };
-  //     setBiayaKirim(0);
-  //     const dataService = await axios(
-  //       '/api/rajaongkir-service?body=' + JSON.stringify(body)
-  //     );
-  //     setLoadingRajaOngkir(false);
-  //     setListServiceExpedisi(dataService.data[0].costs);
-  //     if (dataService.data[0].costs[0]) {
-  //       setBiayaKirim(dataService.data[0].costs[0]?.cost[0].value);
-  //       setselectedExpedisiService(
-  //         dataService.data[0].costs[0]?.description +
-  //           '-' +
-  //           dataService.data[0].costs[0]?.service
-  //       );
-  //       setEtd(dataService.data[0].costs[0]?.cost[0].etd);
-  //       toast.success('Harap pilih tipe layanan pengiriman');
-  //     } else {
-  //       toast.error('Maaf, layanan tidak tersedia. Mohon pilih expedisi lain.');
-  //     }
-  //   };
-  //   if (selectedCarrier != 0 && selectedCarrier != 1 && totalWeight > 0) {
-  //     loadServiceRajaOngkir();
-  //   } else {
-  //     setListServiceExpedisi();
-  //     setBiayaKirim(0);
-  //     setselectedExpedisiService();
-  //     setEtd();
-  //   }
-  // }, [selectedCarrier, selectedAddress, totalWeight]);
-
-  // useEffect(() => {
-  //   if (selectedServiceType) {
-  //     let serviceType = selectedServiceType.split(',');
-  //     setBiayaKirim(serviceType[0]);
-  //     setselectedExpedisiService(serviceType[1]);
-  //     setEtd(serviceType[2]);
-  //   }
-  // }, [selectedServiceType]);
-
-  // useEffect(() => {
-  //   if (etd) setEtdFix(calculateEstimatedArrival(etd));
-  // }, [etd]);
-
-  // useEffect(() => {
-  //   if (selectedExpedisi) {
-  //     let serviceType = selectedExpedisi.split(',');
-  //     if (serviceType[0] === 0) return;
-
-  //     setselectedCarrier(serviceType[0]);
-  //     setselectedCarrierId(serviceType[1]);
-  //     setListServiceExpedisi([]);
-  //   }
-  // }, [selectedExpedisi]);
-
   const poNumber = useRef(null);
   const poFile = useRef(null);
 
-- 
cgit v1.2.3

