lbry-desktop/ui/js/modal/modalWelcome/index.js

17 lines
535 B
JavaScript
Raw Normal View History

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: () => {
2017-08-21 05:06:26 +02:00
dispatch(doSetClientSetting(settings.NEW_USER_ACKNOWLEDGED, true));
dispatch(doCloseModal());
},
});
export default connect(null, perform)(ModalWelcome);