2023-02-23 17:39:48 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
2023-03-06 20:35:00 +01:00
|
|
|
generateDesktopOtp,
|
2023-02-23 17:39:48 +01:00
|
|
|
hideLoadingIndication,
|
|
|
|
showLoadingIndication,
|
|
|
|
} from '../../store/actions';
|
|
|
|
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
|
|
|
import DesktopPairingPage from './desktop-pairing.component';
|
|
|
|
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
|
|
return {
|
2023-03-06 20:35:00 +01:00
|
|
|
generateDesktopOtp: () => generateDesktopOtp(),
|
2023-02-23 17:39:48 +01:00
|
|
|
showLoadingIndication: () => dispatch(showLoadingIndication()),
|
|
|
|
hideLoadingIndication: () => dispatch(hideLoadingIndication()),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
return {
|
|
|
|
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(DesktopPairingPage);
|