diff options
design complete
Diffstat (limited to 'ui/app/components/modals/qr-scanner/qr-scanner.container.js')
-rw-r--r-- | ui/app/components/modals/qr-scanner/qr-scanner.container.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/modals/qr-scanner/qr-scanner.container.js b/ui/app/components/modals/qr-scanner/qr-scanner.container.js index d50abe0ae..d0a35e03b 100644 --- a/ui/app/components/modals/qr-scanner/qr-scanner.container.js +++ b/ui/app/components/modals/qr-scanner/qr-scanner.container.js @@ -1,7 +1,10 @@ import { connect } from 'react-redux' import QrScanner from './qr-scanner.component' -const { hideModal, qrCodeDetected } = require('../../../actions') +const { hideModal, qrCodeDetected, showQrScanner } = require('../../../actions') +import { + SEND_ROUTE, +} from '../../../routes' const mapStateToProps = state => { return { @@ -14,6 +17,7 @@ const mapDispatchToProps = dispatch => { return { hideModal: () => dispatch(hideModal()), qrCodeDetected: (data) => dispatch(qrCodeDetected(data)), + scanQrCode: () => dispatch(showQrScanner(SEND_ROUTE)), } } |