mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
21 lines
532 B
JavaScript
21 lines
532 B
JavaScript
|
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);
|