2017-08-18 19:09:40 +02:00
|
|
|
import React from "react";
|
|
|
|
import * as settings from "constants/settings";
|
|
|
|
import * as modals from "constants/modal_types";
|
|
|
|
import { connect } from "react-redux";
|
2017-11-13 22:02:23 +01:00
|
|
|
import { doCloseModal, doOpenModal } from "redux/actions/app";
|
|
|
|
import { doSetClientSetting } from "redux/actions/settings";
|
2017-08-18 19:09:40 +02:00
|
|
|
import ModalWelcome from "./view";
|
|
|
|
|
|
|
|
const perform = dispatch => () => ({
|
|
|
|
closeModal: () => {
|
2017-08-21 05:06:26 +02:00
|
|
|
dispatch(doSetClientSetting(settings.NEW_USER_ACKNOWLEDGED, true));
|
2017-08-18 19:09:40 +02:00
|
|
|
dispatch(doCloseModal());
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, perform)(ModalWelcome);
|