2021-09-20 18:22:04 +02:00
|
|
|
import { compose } from 'redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { withRouter } from 'react-router-dom';
|
2021-11-26 19:54:57 +01:00
|
|
|
import {
|
|
|
|
setUseCollectibleDetection,
|
2021-12-01 05:12:27 +01:00
|
|
|
setOpenSeaEnabled,
|
2022-01-11 20:17:56 +01:00
|
|
|
setEIP1559V2Enabled,
|
2021-11-26 19:54:57 +01:00
|
|
|
} from '../../../store/actions';
|
|
|
|
import {
|
|
|
|
getUseCollectibleDetection,
|
2021-12-01 05:12:27 +01:00
|
|
|
getOpenSeaEnabled,
|
2022-01-11 20:17:56 +01:00
|
|
|
getEIP1559V2Enabled,
|
2021-11-26 19:54:57 +01:00
|
|
|
} from '../../../selectors';
|
2021-09-20 18:22:04 +02:00
|
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
return {
|
2021-11-26 19:54:57 +01:00
|
|
|
useCollectibleDetection: getUseCollectibleDetection(state),
|
2021-12-01 05:12:27 +01:00
|
|
|
openSeaEnabled: getOpenSeaEnabled(state),
|
2022-01-11 20:17:56 +01:00
|
|
|
eip1559V2Enabled: getEIP1559V2Enabled(state),
|
2021-09-20 18:22:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
|
|
return {
|
2021-11-26 19:54:57 +01:00
|
|
|
setUseCollectibleDetection: (val) =>
|
|
|
|
dispatch(setUseCollectibleDetection(val)),
|
2021-12-01 05:12:27 +01:00
|
|
|
setOpenSeaEnabled: (val) => dispatch(setOpenSeaEnabled(val)),
|
2022-01-11 20:17:56 +01:00
|
|
|
setEIP1559V2Enabled: (val) => dispatch(setEIP1559V2Enabled(val)),
|
2021-09-20 18:22:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default compose(
|
|
|
|
withRouter,
|
|
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
|
|
)(ExperimentalTab);
|