lbry-desktop/ui/js/modal/modalWelcome/index.js
2017-08-29 14:40:30 -04:00

17 lines
572 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: () => {
console.log("Make 'em welcome");
dispatch(doSetClientSetting(settings.NEW_USER_ACKNOWLEDGED, true));
dispatch(doCloseModal());
},
});
export default connect(null, perform)(ModalWelcome);