mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
24 lines
652 B
JavaScript
24 lines
652 B
JavaScript
import { compose } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router-dom';
|
|
import { setUseTokenDetection } from '../../../store/actions';
|
|
import { getUseTokenDetection } from '../../../selectors';
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
useTokenDetection: getUseTokenDetection(state),
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setUseTokenDetection: (val) => dispatch(setUseTokenDetection(val)),
|
|
};
|
|
};
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(ExperimentalTab);
|