18 lines
584 B
JavaScript
18 lines
584 B
JavaScript
|
import React from "react";
|
||
|
import * as settings from "constants/settings";
|
||
|
import * as modals from "constants/modal_types";
|
||
|
import { connect } from "react-redux";
|
||
|
import { doCloseModal, doOpenModal } from "actions/app";
|
||
|
import { doSetClientSetting } from "actions/settings";
|
||
|
import ModalWelcome from "./view";
|
||
|
|
||
|
const perform = dispatch => () => ({
|
||
|
closeModal: () => {
|
||
|
dispatch(doSetClientSetting(settings.FIRST_RUN_ACKNOWLEDGED, true));
|
||
|
dispatch(doCloseModal());
|
||
|
dispatch(doOpenModal(modals.CREDIT_INTRO));
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export default connect(null, perform)(ModalWelcome);
|