lbry-desktop/src/renderer/modal/modalUpgrade/index.js
2018-10-29 13:25:22 -04:00

19 lines
470 B
JavaScript

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