2017-07-19 23:05:08 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
|
2017-11-13 22:02:23 +01:00
|
|
|
import {
|
|
|
|
selectCurrentModal,
|
|
|
|
selectDaemonVersionMatched,
|
|
|
|
} from "redux/selectors/app";
|
|
|
|
import { doCheckDaemonVersion } from "redux/actions/app";
|
2017-07-19 23:05:08 +02:00
|
|
|
import SplashScreen from "./view";
|
|
|
|
|
|
|
|
const select = state => {
|
|
|
|
return {
|
|
|
|
modal: selectCurrentModal(state),
|
|
|
|
daemonVersionMatched: selectDaemonVersionMatched(state),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
checkDaemonVersion: () => dispatch(doCheckDaemonVersion()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(SplashScreen);
|