1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/components/modals/qr-scanner/qr-scanner.container.js

14 lines
378 B
JavaScript
Raw Normal View History

2018-07-30 23:50:05 +02:00
import { connect } from 'react-redux'
import QrScanner from './qr-scanner.component'
const { hideModal, qrCodeDetected } = require('../../../actions')
const mapDispatchToProps = dispatch => {
return {
hideModal: () => dispatch(hideModal()),
qrCodeDetected: (data) => dispatch(qrCodeDetected(data)),
}
}
export default connect(null, mapDispatchToProps)(QrScanner)