mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
13 lines
465 B
JavaScript
13 lines
465 B
JavaScript
import { connect } from 'react-redux'
|
|
import ProviderApproval from './provider-approval.component'
|
|
import { approveProviderRequest, rejectProviderRequest } from '../../../actions'
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
approveProviderRequest: origin => dispatch(approveProviderRequest(origin)),
|
|
rejectProviderRequest: origin => dispatch(rejectProviderRequest(origin)),
|
|
}
|
|
}
|
|
|
|
export default connect(null, mapDispatchToProps)(ProviderApproval)
|