remove dialog dependency for camera modal

This commit is contained in:
lemonknowsall committed 2025-10-27 15:47:18 -07:00
1 parent 025cd9ed5e
commit df6989baf9
2 files changed
+81 -36

No files matched your search

+12
View File
@@ -336,8 +336,20 @@ export function CashuWallet() {
// Start/stop QR scanner when modal opens/closes
useEffect(() => {
if (showQRScanner) {
// Lock body scroll on mobile
document.body.style.overflow = 'hidden';
document.body.style.position = 'fixed';
document.body.style.width = '100%';
document.body.style.height = '100%';
startScanning(handleQRScanResult);
} else {
// Restore body scroll
document.body.style.overflow = '';
document.body.style.position = '';
document.body.style.width = '';
document.body.style.height = '';
stopScanning();
}
// eslint-disable-next-line react-hooks/exhaustive-deps