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