mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +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);
|