nagy-nabil / POS

POINT OF SALE
https://pos-git-demo-zagy.vercel.app/en/signin
1 stars 0 forks source link

Qrcode #24

Closed nagy-nabil closed 1 year ago

nagy-nabil commented 1 year ago

Close #4

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2023 7:41pm
pos-xpe1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2023 7:41pm
nagy-nabil commented 1 year ago

it's now support use qr while creating product and to pick items in order

but there's an error, if you open the order pick modal then product create modal, then tried to use qr in order won't render the qr
I guess it has to do with useEffect in Qrcode.tsx

nagy-nabil commented 1 year ago

OR there could be another reason, in Qrcode component I render the qr in div with id of const qrcodeRegionId = "html5qr-code-full-region"; and as we know we cannot have two elements with the same id this could be the one making problems will try to change it anyway

nagy-nabil commented 1 year ago

OR there could be another reason, in Qrcode component I render the qr in div with id of const qrcodeRegionId = "html5qr-code-full-region"; and as we know we cannot have two elements with the same id this could be the one making problems will try to change it anyway

YUB guess this was it