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.
32 lines
872 B
32 lines
872 B
import { compose } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router-dom';
|
|
import {
|
|
setUseTokenDetection,
|
|
setUseCollectibleDetection,
|
|
} from '../../../store/actions';
|
|
import {
|
|
getUseTokenDetection,
|
|
getUseCollectibleDetection,
|
|
} from '../../../selectors';
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
useTokenDetection: getUseTokenDetection(state),
|
|
useCollectibleDetection: getUseCollectibleDetection(state),
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setUseTokenDetection: (val) => dispatch(setUseTokenDetection(val)),
|
|
setUseCollectibleDetection: (val) =>
|
|
dispatch(setUseCollectibleDetection(val)),
|
|
};
|
|
};
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(ExperimentalTab);
|
|
|