2017-12-21 22:08:54 +01:00
|
|
|
import * as settings from 'constants/settings';
|
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2017-12-21 22:08:54 +01:00
|
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
|
|
|
import ModalWelcome from './view';
|
2017-08-18 19:09:40 +02:00
|
|
|
|
|
|
|
const perform = dispatch => () => ({
|
|
|
|
closeModal: () => {
|
2017-08-21 05:06:26 +02:00
|
|
|
dispatch(doSetClientSetting(settings.NEW_USER_ACKNOWLEDGED, true));
|
2018-10-29 18:23:53 +01:00
|
|
|
dispatch(doHideModal());
|
2017-08-18 19:09:40 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2018-11-01 22:55:25 +01:00
|
|
|
export default connect(
|
|
|
|
null,
|
|
|
|
perform
|
|
|
|
)(ModalWelcome);
|