mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
6c84e9604c
* Enable "Add Popular Network" feature by default * Fixing e2e tests * Attempt to fix e2e tests * Revert "Attempt to fix e2e tests" This reverts commit d88e8944b8df8f7c3075753f8d8b3480439f8e30. * Get e2e tests passing Co-authored-by: Dan J Miller <danjm.com@gmail.com>
37 lines
1020 B
JavaScript
37 lines
1020 B
JavaScript
import { compose } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import { withRouter } from 'react-router-dom';
|
|
import {
|
|
setUseCollectibleDetection,
|
|
setOpenSeaEnabled,
|
|
setEIP1559V2Enabled,
|
|
} from '../../../store/actions';
|
|
import {
|
|
getUseCollectibleDetection,
|
|
getOpenSeaEnabled,
|
|
getEIP1559V2Enabled,
|
|
} from '../../../selectors';
|
|
import ExperimentalTab from './experimental-tab.component';
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
useCollectibleDetection: getUseCollectibleDetection(state),
|
|
openSeaEnabled: getOpenSeaEnabled(state),
|
|
eip1559V2Enabled: getEIP1559V2Enabled(state),
|
|
};
|
|
};
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
setUseCollectibleDetection: (val) =>
|
|
dispatch(setUseCollectibleDetection(val)),
|
|
setOpenSeaEnabled: (val) => dispatch(setOpenSeaEnabled(val)),
|
|
setEIP1559V2Enabled: (val) => dispatch(setEIP1559V2Enabled(val)),
|
|
};
|
|
};
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(ExperimentalTab);
|