2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:25:22 +01:00
|
|
|
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';
|
2017-12-21 22:08:54 +01:00
|
|
|
import SplashScreen from './view';
|
2017-07-19 23:05:08 +02:00
|
|
|
|
2017-12-13 22:36:30 +01:00
|
|
|
const select = state => ({
|
2018-10-29 18:25:22 +01:00
|
|
|
notification: selectNotification(state),
|
2017-12-13 22:36:30 +01:00
|
|
|
daemonVersionMatched: selectDaemonVersionMatched(state),
|
|
|
|
});
|
2017-07-19 23:05:08 +02:00
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
checkDaemonVersion: () => dispatch(doCheckDaemonVersion()),
|
2018-07-18 21:48:30 +02:00
|
|
|
notifyUnlockWallet: () => dispatch(doNotifyUnlockWallet()),
|
2017-07-19 23:05:08 +02:00
|
|
|
});
|
|
|
|
|
2018-07-18 21:48:30 +02:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(SplashScreen);
|