1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/components/app/modals/qr-scanner/qr-scanner.container.js

13 lines
389 B
JavaScript
Raw Normal View History

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