lbry-desktop/src/renderer/modal/modalWelcome/index.js
2018-11-20 11:05:25 -05:00

17 lines
462 B
JavaScript

import * as settings from 'constants/settings';
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doSetClientSetting } from 'redux/actions/settings';
import ModalWelcome from './view';
const perform = dispatch => () => ({
closeModal: () => {
dispatch(doSetClientSetting(settings.NEW_USER_ACKNOWLEDGED, true));
dispatch(doHideModal());
},
});
export default connect(
null,
perform
)(ModalWelcome);