1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/app/pages/provider-approval/provider-approval.container.js

13 lines
516 B
JavaScript
Raw Normal View History

2018-09-27 20:19:09 +02:00
import { connect } from 'react-redux'
import ProviderApproval from './provider-approval.component'
import { approveProviderRequestByOrigin, rejectProviderRequestByOrigin } from '../../store/actions'
2018-09-27 20:19:09 +02:00
function mapDispatchToProps (dispatch) {
return {
approveProviderRequestByOrigin: origin => dispatch(approveProviderRequestByOrigin(origin)),
rejectProviderRequestByOrigin: origin => dispatch(rejectProviderRequestByOrigin(origin)),
2018-09-27 20:19:09 +02:00
}
}
export default connect(null, mapDispatchToProps)(ProviderApproval)