You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
import SecurityTab from './security-tab.component'
|
|
import { compose } from 'redux'
|
|
import { connect } from 'react-redux'
|
|
import { withRouter } from 'react-router-dom'
|
|
import {
|
|
setFeatureFlag,
|
|
setParticipateInMetaMetrics,
|
|
setUsePhishDetect,
|
|
} from '../../../store/actions'
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { appState: { warning }, metamask } = state
|
|
const {
|
|
featureFlags: {
|
|
showIncomingTransactions,
|
|
} = {},
|
|
participateInMetaMetrics,
|
|
usePhishDetect,
|
|
} = metamask
|
|
|
|
return {
|
|
warning,
|
|
showIncomingTransactions,
|
|
participateInMetaMetrics,
|
|
usePhishDetect,
|
|
}
|
|
}
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setParticipateInMetaMetrics: (val) => dispatch(setParticipateInMetaMetrics(val)),
|
|
setShowIncomingTransactionsFeatureFlag: (shouldShow) => dispatch(setFeatureFlag('showIncomingTransactions', shouldShow)),
|
|
setUsePhishDetect: (val) => dispatch(setUsePhishDetect(val)),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps)
|
|
)(SecurityTab)
|
|
|