From 900372920d521ee940b141646381d363d487e4d0 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Mon, 14 Apr 2025 16:47:04 +0700
Subject: transaction

---
 .../treckingAwb/component/InformationSection.jsx   | 73 ++++++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 src/lib/treckingAwb/component/InformationSection.jsx

(limited to 'src/lib/treckingAwb/component/InformationSection.jsx')

diff --git a/src/lib/treckingAwb/component/InformationSection.jsx b/src/lib/treckingAwb/component/InformationSection.jsx
new file mode 100644
index 00000000..41386683
--- /dev/null
+++ b/src/lib/treckingAwb/component/InformationSection.jsx
@@ -0,0 +1,73 @@
+import { useState } from "react";
+import toast from "react-hot-toast";
+
+const InformationSection = ({ manifests }) => {
+  const [copied, setCopied] = useState(false);
+
+  const handleCopyClick = () => {
+    const textToCopy = manifests?.waybillNumber;
+    navigator.clipboard.writeText(textToCopy);
+    setCopied(true);
+    toast.success('No Resi Berhasil di Copy');
+    setTimeout(() => setCopied(false), 2000); // Reset copied state after 2 seconds
+  };
+
+  return (
+    <div className=''>
+      <div className='grid gap-y-4 p-4'>
+        <div className='grid grid-cols-[150px_auto] mb-4'>
+          <span className='font-semibold '>Nomor Resi</span>
+          <div className='flex gap-x-3'>
+            <span className='font-semibold'>: {manifests?.waybillNumber} </span>
+            <button
+              className={`${copied ? 'text-gray-400' : 'text-red-600 '}`}
+              onClick={() => handleCopyClick()}
+            >
+              <svg
+                aria-hidden='true'
+                fill='none'
+                stroke='currentColor'
+                stroke-width='1.5'
+                viewBox='0 0 24 24'
+                className='w-5 h-6'
+              >
+                <path
+                  d='M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75'
+                  stroke-linecap='round'
+                  stroke-linejoin='round'
+                ></path>
+              </svg>
+            </button>
+          </div>
+        </div>
+        <div className='grid grid-cols-[150px_auto]'>
+          <span>Kurir</span>
+          <span className='font-semibold'>
+            {' '}
+            : {manifests?.deliveryOrder.carrier}
+          </span>
+        </div>
+        <div className='grid grid-cols-[150px_auto]'>
+          <span>Jenis Service</span>
+          <span className='font-semibold'>
+            {' '}
+            : {manifests?.deliveryOrder.service}
+          </span>
+        </div>
+        <div className='grid grid-cols-[150px_auto]'>
+          <span>Tanggal Dikirim</span>
+          <span className='font-semibold'> : {manifests?.deliveredDate}</span>
+        </div>
+        <div className='grid grid-cols-[150px_auto]'>
+          <span>Estimasi Tiba</span>
+          <span className='font-semibold'>
+            :{' '}
+            <span className='text-red-600 font-semibold'>{manifests?.eta}</span>
+          </span>
+        </div>
+      </div>
+    </div>
+  );
+};
+
+export default InformationSection;
-- 
cgit v1.2.3


From 0aa0d458e668520ef96ccf7ecb35bf84a585b279 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Mon, 21 Apr 2025 13:05:57 +0700
Subject: fedback renca

---
 src/lib/treckingAwb/component/InformationSection.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/treckingAwb/component/InformationSection.jsx')

diff --git a/src/lib/treckingAwb/component/InformationSection.jsx b/src/lib/treckingAwb/component/InformationSection.jsx
index 41386683..87fb05f4 100644
--- a/src/lib/treckingAwb/component/InformationSection.jsx
+++ b/src/lib/treckingAwb/component/InformationSection.jsx
@@ -1,7 +1,7 @@
 import { useState } from "react";
 import toast from "react-hot-toast";
 
-const InformationSection = ({ manifests }) => {
+const InformationSection = ({ manifests, source = "tracking" }) => {
   const [copied, setCopied] = useState(false);
 
   const handleCopyClick = () => {
-- 
cgit v1.2.3


From 71ca9d6c85871b6bcb2976ed4911032aab4d32e7 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Thu, 24 Apr 2025 13:53:32 +0700
Subject: fixing revisi renca

---
 src/lib/treckingAwb/component/InformationSection.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/lib/treckingAwb/component/InformationSection.jsx')

diff --git a/src/lib/treckingAwb/component/InformationSection.jsx b/src/lib/treckingAwb/component/InformationSection.jsx
index 87fb05f4..bb37d4ae 100644
--- a/src/lib/treckingAwb/component/InformationSection.jsx
+++ b/src/lib/treckingAwb/component/InformationSection.jsx
@@ -1,7 +1,7 @@
 import { useState } from "react";
 import toast from "react-hot-toast";
 
-const InformationSection = ({ manifests, source = "tracking" }) => {
+const InformationSection = ({ manifests}) => {
   const [copied, setCopied] = useState(false);
 
   const handleCopyClick = () => {
@@ -44,14 +44,14 @@ const InformationSection = ({ manifests, source = "tracking" }) => {
           <span>Kurir</span>
           <span className='font-semibold'>
             {' '}
-            : {manifests?.deliveryOrder.carrier}
+            : {manifests?.deliveryOrder?.carrier}
           </span>
         </div>
         <div className='grid grid-cols-[150px_auto]'>
           <span>Jenis Service</span>
           <span className='font-semibold'>
             {' '}
-            : {manifests?.deliveryOrder.service}
+            : {manifests?.deliveryOrder?.service}
           </span>
         </div>
         <div className='grid grid-cols-[150px_auto]'>
-- 
cgit v1.2.3


From 907deb7ca6589b83203b2352a3dd02b631696848 Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Mon, 9 Jun 2025 20:36:58 +0700
Subject: <miqdad> add barang in information section

---
 src/lib/treckingAwb/component/InformationSection.jsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'src/lib/treckingAwb/component/InformationSection.jsx')

diff --git a/src/lib/treckingAwb/component/InformationSection.jsx b/src/lib/treckingAwb/component/InformationSection.jsx
index bb37d4ae..082939b7 100644
--- a/src/lib/treckingAwb/component/InformationSection.jsx
+++ b/src/lib/treckingAwb/component/InformationSection.jsx
@@ -1,7 +1,7 @@
-import { useState } from "react";
-import toast from "react-hot-toast";
+import { useState } from 'react';
+import toast from 'react-hot-toast';
 
-const InformationSection = ({ manifests}) => {
+const InformationSection = ({ manifests }) => {
   const [copied, setCopied] = useState(false);
 
   const handleCopyClick = () => {
@@ -40,6 +40,10 @@ const InformationSection = ({ manifests}) => {
             </button>
           </div>
         </div>
+        <div className='grid grid-cols-[150px_auto]'>
+          <span>Kurir</span>
+          <span className='font-semibold'> : {manifests?.products}</span>
+        </div>
         <div className='grid grid-cols-[150px_auto]'>
           <span>Kurir</span>
           <span className='font-semibold'>
-- 
cgit v1.2.3

