1
0
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:
brunobar79 2018-07-24 22:34:15 -04:00
parent eeb902dbf0
commit 4759915856
2 changed files with 6 additions and 2 deletions

View File

@ -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 :('})

View File

@ -631,6 +631,7 @@
position: absolute; position: absolute;
top: 21px; top: 21px;
left: 13px; left: 13px;
cursor: pointer;
} }
&__input.with-qr { &__input.with-qr {