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

15 lines
463 B
JavaScript
Raw Normal View History

import * as settings from 'constants/settings';
import { connect } from 'react-redux';
import { doHideNotification } from 'lbry-redux';
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(doHideNotification());
},
});
export default connect(null, perform)(ModalWelcome);