lbry-desktop/ui/modal/modalUpgrade/index.js
2019-11-11 13:27:29 -05:00

18 lines
427 B
JavaScript

import { connect } from 'react-redux';
import { doDownloadUpgrade, doSkipUpgrade, doHideModal } from 'redux/actions/app';
import ModalUpgrade from './view';
const select = () => ({});
const perform = dispatch => ({
downloadUpgrade: () => dispatch(doDownloadUpgrade()),
skipUpgrade: () => {
dispatch(doHideModal());
dispatch(doSkipUpgrade());
},
});
export default connect(
select,
perform
)(ModalUpgrade);