1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 15:14:29 +01:00
metamask-extension/ui/app/components/pages/provider-approval/provider-approval.container.js

13 lines
461 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 { approveProviderRequest, rejectProviderRequest } from '../../../actions'
function mapDispatchToProps (dispatch) {
return {
approveProviderRequest: tabID => dispatch(approveProviderRequest(tabID)),
rejectProviderRequest: tabID => dispatch(rejectProviderRequest(tabID)),
2018-09-27 20:19:09 +02:00
}
}
export default connect(null, mapDispatchToProps)(ProviderApproval)