blob: 198d5ff81642265287befe79296a295e9b68f727 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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)
|