1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/ui/pages/desktop-error/desktop-error.container.js

21 lines
532 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { compose } from 'redux';
import { withRouter } from 'react-router-dom';
import { FORCE_DISABLE_DESKTOP } from '../../store/actionConstants';
import DesktopError from './desktop-error.component';
const mapStateToProps = () => ({});
const mapDispatchToProps = (dispatch) => ({
forceDisableDesktop: async () => {
dispatch({
type: FORCE_DISABLE_DESKTOP,
});
},
});
export default compose(
withRouter,
connect(mapStateToProps, mapDispatchToProps),
)(DesktopError);