mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
remove dialog dependency for camera modal
This commit is contained in:
1 parent
025cd9ed5e
commit
df6989baf9
2 files changed
+81
-36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user