superhero-com / superhero-wallet

Superhero is a multi-blockchain wallet to manage crypto assets and navigate the web3 and DeFi space. Currently supporting Bitcoin, Ethereum and æternity blockchains.
https://wallet.superhero.com
ISC License
39 stars 38 forks source link

Display placeholder when device has no camera on the QR Scanner #2439

Closed olszewskimar closed 5 months ago

olszewskimar commented 1 year ago

https://aeternity-blockchain.atlassian.net/browse/SW-897

The problem: Currently if the device has no camera or the camera is temporarily unavailable we are displaying empty space on the QR Scan modal:

Image Image

The solution: Proposing some textual/visual information about the lack of camera access. Or maybe reusing the message displayed when user denies the access to the camera but with a different text. @Tsvetan Kolev can you propose something?

Refactoring the component to TypeScript and Composition API.

Probably replacing the handleUnknownError with a logic that would display designed information.

Liubov-crypto commented 6 months ago

I tried to connect my Mac to external monitor and disabled camera permissions in Settings, but wallet detects that device has a camera. Idk if there is a different way to test it.