-
+
Webs Wallets
-
+
Bitcoin.com Mint is an open source, non-custodial web wallet
supporting SLP and BCH. Web wallets offer user convenience,
diff --git a/src/components/footer/index.js b/src/components/footer/index.js
index ad86a5a..0c4326e 100644
--- a/src/components/footer/index.js
+++ b/src/components/footer/index.js
@@ -17,7 +17,7 @@ class Footer extends React.Component {
Permissionless Software Foundation
@@ -28,7 +28,7 @@ class Footer extends React.Component {
Github
diff --git a/src/components/qr-scanner/modal.js b/src/components/qr-scanner/modal.js
index 520f0e6..8900273 100644
--- a/src/components/qr-scanner/modal.js
+++ b/src/components/qr-scanner/modal.js
@@ -1,40 +1,42 @@
-import React, { Component } from "react"
-import PropTypes from "prop-types"
-import { Content, Button } from "adminlte-2-react"
-import QScanner from "./qr-scanner"
+import React, { Component } from 'react'
+import PropTypes from 'prop-types'
+import { Content, Button } from 'adminlte-2-react'
+import QScanner from './qr-scanner'
let _this
class ScannerModal extends Component {
- constructor(props) {
+ constructor (props) {
super(props)
_this = this
this.state = {}
+
+ this.modalFooter = (
+ <>
+
+ >
+ )
}
- modalFooter = (
-
-
-
- )
-
- render() {
+ render () {
return (
-
+
)
}
}
+
ScannerModal.propTypes = {
show: PropTypes.bool.isRequired,
- onHide: PropTypes.func.isRequired,
+ OnHide: PropTypes.func.isRequired,
onError: PropTypes.func,
- onScan: PropTypes.func,
+ onScan: PropTypes.func
}
+
export default ScannerModal
diff --git a/src/components/qr-scanner/qr-scanner.js b/src/components/qr-scanner/qr-scanner.js
index b4b924f..76e7364 100644
--- a/src/components/qr-scanner/qr-scanner.js
+++ b/src/components/qr-scanner/qr-scanner.js
@@ -1,37 +1,39 @@
-import React, { Component } from "react"
-import PropTypes from "prop-types"
-import "./qr-scanner.css"
-import QrReader from "react-qr-reader"
+import React, { Component } from 'react'
+import PropTypes from 'prop-types'
+import './qr-scanner.css'
+import QrReader from 'react-qr-reader'
let _this
class QScanner extends Component {
- constructor(props) {
+ constructor (props) {
super(props)
_this = this
this.state = {
- result: "No Result",
- facingMode: "environment",
+ result: 'No Result',
+ facingMode: 'environment'
+ }
+
+ this.handleScan = data => {
+ if (data) {
+ this.setState({
+ result: data
+ })
+ _this.props.onScan && _this.props.onScan(data)
+ }
+ }
+
+ this.handleError = err => {
+ console.error(err)
+ _this.props.onError ? _this.props.onError(err) : console.error(err)
}
}
- handleScan = data => {
- if (data) {
- this.setState({
- result: data,
- })
- _this.props.onScan && _this.props.onScan(data)
- }
- }
- handleError = err => {
- console.error(err)
- _this.props.onError ? _this.props.onError(err) : alert(err)
- }
- render() {
+ render () {
return (
-
+
Facing Mode: {_this.state.facingMode}
-
+
Change
- {this.state.result}
+ {this.state.result}
)
}
- changeMode() {
- let mode = _this.state.facingMode === "user" ? "environment" : "user"
+
+ handleChangeMode () {
+ const mode = _this.state.facingMode === 'user' ? 'environment' : 'user'
console.log(`changing to ${mode} mode`)
_this.setState({
- facingMode: mode,
+ facingMode: mode
})
}
}
QScanner.propTypes = {
onError: PropTypes.func,
- onScan: PropTypes.func,
+ onScan: PropTypes.func
}
export default QScanner
diff --git a/src/pages/404.js b/src/pages/404.js
index 59356af..30df068 100644
--- a/src/pages/404.js
+++ b/src/pages/404.js
@@ -1,11 +1,11 @@
import React from 'react'
import Layout from '../components/layout'
-import SEO from '../components/seo'
+import Seo from '../components/seo'
const NotFoundPage = () => (
-
+
NOT FOUND
You just hit a route that doesn't exist... the sadness.
diff --git a/src/pages/page-2.js b/src/pages/page-2.js
index aaf46a7..55eda8b 100644
--- a/src/pages/page-2.js
+++ b/src/pages/page-2.js
@@ -2,11 +2,11 @@ import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
-import SEO from '../components/seo'
+import Seo from '../components/seo'
const SecondPage = () => (
-
+
Hi from the second page
Welcome to page 2
Go back to the homepage