mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
import SecurityTab from './security-tab.component'
|
|
import { compose } from 'recompose'
|
|
import { connect } from 'react-redux'
|
|
import { withRouter } from 'react-router-dom'
|
|
import {
|
|
displayWarning,
|
|
revealSeedConfirmation,
|
|
setFeatureFlag,
|
|
setParticipateInMetaMetrics,
|
|
} from '../../../store/actions'
|
|
|
|
const mapStateToProps = state => {
|
|
const { appState: { warning }, metamask } = state
|
|
const {
|
|
featureFlags: {
|
|
showIncomingTransactions,
|
|
} = {},
|
|
participateInMetaMetrics,
|
|
} = metamask
|
|
|
|
return {
|
|
warning,
|
|
showIncomingTransactions,
|
|
participateInMetaMetrics,
|
|
}
|
|
}
|
|
|
|
const mapDispatchToProps = dispatch => {
|
|
return {
|
|
displayWarning: warning => dispatch(displayWarning(warning)),
|
|
revealSeedConfirmation: () => dispatch(revealSeedConfirmation()),
|
|
setParticipateInMetaMetrics: (val) => dispatch(setParticipateInMetaMetrics(val)),
|
|
setShowIncomingTransactionsFeatureFlag: shouldShow => dispatch(setFeatureFlag('showIncomingTransactions', shouldShow)),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps)
|
|
)(SecurityTab)
|