mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
247659ca65
* Nix notification for Share Address * Add Connections settings tab in place of privacy mode toggle * Split ProviderApprovalController into two stores * Remove privacyMode feature flag altogether * Add migration to remove privacyMode feature flag
40 lines
958 B
JavaScript
40 lines
958 B
JavaScript
import ConnectionsTab from './connections-tab.component'
|
|
import { compose } from 'recompose'
|
|
import { connect } from 'react-redux'
|
|
import { withRouter } from 'react-router-dom'
|
|
import {
|
|
approveProviderRequestByOrigin,
|
|
rejectProviderRequestByOrigin,
|
|
showModal,
|
|
} from '../../../store/actions'
|
|
|
|
export const mapStateToProps = state => {
|
|
const {
|
|
activeTab,
|
|
metamask,
|
|
} = state
|
|
const {
|
|
approvedOrigins,
|
|
} = metamask
|
|
|
|
return {
|
|
activeTab,
|
|
approvedOrigins,
|
|
}
|
|
}
|
|
|
|
export const mapDispatchToProps = dispatch => {
|
|
return {
|
|
approveProviderRequestByOrigin: (origin) => dispatch(approveProviderRequestByOrigin(origin)),
|
|
rejectProviderRequestByOrigin: (origin) => dispatch(rejectProviderRequestByOrigin(origin)),
|
|
showClearApprovalModal: () => dispatch(showModal({
|
|
name: 'CLEAR_APPROVED_ORIGINS',
|
|
})),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps)
|
|
)(ConnectionsTab)
|