diff --git a/src/App.js b/src/App.js index 57a460f..5fdd428 100644 --- a/src/App.js +++ b/src/App.js @@ -96,6 +96,7 @@ function App() { if (response.status === 200) { setShop(cafe); setShopItems(data); + console.log(data) // Filter out unavailable items const filteredData = data .map((itemType) => ({ @@ -424,6 +425,7 @@ function App() { shopName={shop.name} shopOwnerId={shop.ownerId} shopItems={shopItems} + setShopItems={setShopItems} shopClerks={shopClerks} socket={socket} user={user} diff --git a/src/components/Footer.js b/src/components/Footer.js index 17601a0..1eb0251 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -63,14 +63,14 @@ export default function Footer({ {/* Search Icon */} -
QR Code Detected
:No QR Code Detected
} + {qrCodeDetected ?QR Code Detected
:Tidak ada qr yang terdeteksi
}- Turn on the switch for the clerk to double check before customer pay. + Nyalakan agar kasir memeriksa kembali ketersediaan produk sebelum pelanggan membayar.