lbry-desktop/src/renderer/component/splash/index.js

21 lines
625 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { selectDaemonVersionMatched } from 'redux/selectors/app';
import { selectNotification } from 'lbry-redux';
2018-07-18 21:48:30 +02:00
import { doCheckDaemonVersion, doNotifyUnlockWallet } from 'redux/actions/app';
import SplashScreen from './view';
2017-12-13 22:36:30 +01:00
const select = state => ({
notification: selectNotification(state),
2017-12-13 22:36:30 +01:00
daemonVersionMatched: selectDaemonVersionMatched(state),
});
const perform = dispatch => ({
checkDaemonVersion: () => dispatch(doCheckDaemonVersion()),
2018-07-18 21:48:30 +02:00
notifyUnlockWallet: () => dispatch(doNotifyUnlockWallet()),
});
2018-07-18 21:48:30 +02:00
export default connect(
select,
perform
)(SplashScreen);