mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
25 lines
737 B
JavaScript
25 lines
737 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
generateDesktopOtp,
|
|
hideLoadingIndication,
|
|
showLoadingIndication,
|
|
} from '../../store/actions';
|
|
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
|
import DesktopPairingPage from './desktop-pairing.component';
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
generateDesktopOtp: () => generateDesktopOtp(),
|
|
showLoadingIndication: () => dispatch(showLoadingIndication()),
|
|
hideLoadingIndication: () => dispatch(hideLoadingIndication()),
|
|
};
|
|
};
|
|
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(DesktopPairingPage);
|