You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
389 B
13 lines
389 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import { hideModal, qrCodeDetected } from '../../../../store/actions';
|
||
|
import QrScanner from './qr-scanner.component';
|
||
6 years ago
|
|
||
5 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
6 years ago
|
return {
|
||
|
hideModal: () => dispatch(hideModal()),
|
||
|
qrCodeDetected: (data) => dispatch(qrCodeDetected(data)),
|
||
4 years ago
|
};
|
||
|
};
|
||
6 years ago
|
|
||
4 years ago
|
export default connect(null, mapDispatchToProps)(QrScanner);
|