From bb01aa8c2423b19247d9e3530ae1a3256d884861 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 23 Nov 2023 16:38:42 +0700
Subject: Update export data result

---
 src/modules/stock-opname/index.tsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/modules/stock-opname/index.tsx')

diff --git a/src/modules/stock-opname/index.tsx b/src/modules/stock-opname/index.tsx
index eb8b796..c2a889a 100644
--- a/src/modules/stock-opname/index.tsx
+++ b/src/modules/stock-opname/index.tsx
@@ -70,11 +70,13 @@ const StockOpname = () => {
   }
 
   const [activeScanner, setActiveScanner] = useState<ActiveScanner>(null)
+  const [scannerVal, setScannerVal] = useState('')
   const [scannerOptions, setScannerOptions] = useState<ScannerOption[]>()
   const [scannerOptionLoading, setScannerOptionLoading] = useState<boolean>(false)
 
   const handleOnScan = async (data: string) => {
     if (!activeScanner) return
+    setScannerVal(data)
     const loadFunc = activeScanner === 'product' ? loadProduct : loadLocation
     setScannerOptionLoading(true)
     const response = await loadFunc(data)
@@ -204,9 +206,11 @@ const StockOpname = () => {
                   ))}
                 </div>
                 {scannerOptions.length === 0 && (
-                  <div className="flex flex-col justify-center items-center gap-y-4 text-default-700">
+                  <div className="flex flex-col justify-center items-center gap-y-4 text-default-700 text-center">
                     <AlertCircleIcon size={36} />
-                    Tidak ada opsi untuk ditampilkan
+                    <span>
+                      Tidak ada opsi untuk ditampilkan dari <span className="font-medium">{scannerVal}</span>
+                    </span>
                   </div>
                 )}
                 <Spacer y={2} />
-- 
cgit v1.2.3

