2020-02-19 07:31:40 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import Welcome from './view';
|
2022-04-01 21:10:32 +02:00
|
|
|
import { doSetWelcomeVersion } from 'redux/actions/app';
|
|
|
|
import { WELCOME_VERSION } from 'config';
|
|
|
|
import { selectDaemonSettings, selectDaemonStatus } from 'redux/selectors/settings';
|
2020-02-19 07:31:40 +01:00
|
|
|
|
2022-04-01 21:10:32 +02:00
|
|
|
const select = (state) => ({
|
|
|
|
daemonSettings: selectDaemonSettings(state),
|
|
|
|
daemonStatus: selectDaemonStatus(state),
|
|
|
|
});
|
2020-02-19 07:31:40 +01:00
|
|
|
|
2022-04-01 21:10:32 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updateWelcomeVersion: (version) => dispatch(doSetWelcomeVersion(version || WELCOME_VERSION)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(Welcome);
|