mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix spinner and qr icon
This commit is contained in:
parent
eeb902dbf0
commit
4759915856
@ -44,8 +44,11 @@ class QrScanner extends Component {
|
|||||||
Instascan.Camera.getCameras().then((cameras) => {
|
Instascan.Camera.getCameras().then((cameras) => {
|
||||||
if (cameras.length > 0) {
|
if (cameras.length > 0) {
|
||||||
this.scanner.start(cameras[0])
|
this.scanner.start(cameras[0])
|
||||||
this.setState({ ready: true })
|
setTimeout(_ => {
|
||||||
this.setState({ msg: 'Place the QR code in front of your camera so we can read it...'})
|
this.setState({
|
||||||
|
ready: true,
|
||||||
|
msg: 'Place the QR code in front of your camera so we can read it...'})
|
||||||
|
}, 2000)
|
||||||
console.log('QR-SCANNER: started scanning with camera', cameras[0])
|
console.log('QR-SCANNER: started scanning with camera', cameras[0])
|
||||||
} else {
|
} else {
|
||||||
this.setState({ msg: 'No camera found :('})
|
this.setState({ msg: 'No camera found :('})
|
||||||
|
@ -631,6 +631,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 21px;
|
top: 21px;
|
||||||
left: 13px;
|
left: 13px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__input.with-qr {
|
&__input.with-qr {
|
||||||
|
Loading…
Reference in New Issue
Block a user