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.
46 lines
1.5 KiB
46 lines
1.5 KiB
import { compose } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router-dom';
|
|
import {
|
|
setUseNftDetection,
|
|
setOpenSeaEnabled,
|
|
setEIP1559V2Enabled,
|
|
setImprovedTokenAllowanceEnabled,
|
|
setTransactionSecurityCheckEnabled,
|
|
} from '../../../store/actions';
|
|
import {
|
|
getUseNftDetection,
|
|
getOpenSeaEnabled,
|
|
getEIP1559V2Enabled,
|
|
getIsImprovedTokenAllowanceEnabled,
|
|
getIsTransactionSecurityCheckEnabled,
|
|
} from '../../../selectors';
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
useNftDetection: getUseNftDetection(state),
|
|
openSeaEnabled: getOpenSeaEnabled(state),
|
|
eip1559V2Enabled: getEIP1559V2Enabled(state),
|
|
improvedTokenAllowanceEnabled: getIsImprovedTokenAllowanceEnabled(state),
|
|
transactionSecurityCheckEnabled:
|
|
getIsTransactionSecurityCheckEnabled(state),
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setUseNftDetection: (val) => dispatch(setUseNftDetection(val)),
|
|
setOpenSeaEnabled: (val) => dispatch(setOpenSeaEnabled(val)),
|
|
setEIP1559V2Enabled: (val) => dispatch(setEIP1559V2Enabled(val)),
|
|
setImprovedTokenAllowanceEnabled: (val) =>
|
|
dispatch(setImprovedTokenAllowanceEnabled(val)),
|
|
setTransactionSecurityCheckEnabled: (val) =>
|
|
dispatch(setTransactionSecurityCheckEnabled(val)),
|
|
};
|
|
};
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(ExperimentalTab);
|
|
|