mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
97073e1907
* move opensea api and nft settings to security tab * DS techdebt; experimental tab * rerouting the NFT tab enable autodetect to setting * reverting vscode settings and preferences.js * Rerouting NFT tab autodetect setting banner link * resolving settingsRef collision
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import { compose } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router-dom';
|
|
import {
|
|
setTransactionSecurityCheckEnabled,
|
|
///: BEGIN:ONLY_INCLUDE_IN(blockaid)
|
|
setSecurityAlertsEnabled,
|
|
///: END:ONLY_INCLUDE_IN
|
|
} from '../../../store/actions';
|
|
import {
|
|
getIsTransactionSecurityCheckEnabled,
|
|
///: BEGIN:ONLY_INCLUDE_IN(blockaid)
|
|
getIsSecurityAlertsEnabled,
|
|
///: END:ONLY_INCLUDE_IN
|
|
} from '../../../selectors';
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
transactionSecurityCheckEnabled:
|
|
getIsTransactionSecurityCheckEnabled(state),
|
|
///: BEGIN:ONLY_INCLUDE_IN(blockaid)
|
|
securityAlertsEnabled: getIsSecurityAlertsEnabled(state),
|
|
///: END:ONLY_INCLUDE_IN
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setTransactionSecurityCheckEnabled: (val) =>
|
|
dispatch(setTransactionSecurityCheckEnabled(val)),
|
|
///: BEGIN:ONLY_INCLUDE_IN(blockaid)
|
|
setSecurityAlertsEnabled: (val) => setSecurityAlertsEnabled(val),
|
|
///: END:ONLY_INCLUDE_IN
|
|
};
|
|
};
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(ExperimentalTab);
|