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

18 lines
462 B
JavaScript
Raw Normal View History

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