Restore vanilla components

This commit is contained in:
kibigo! committed 2017-11-17 19:29:16 -08:00
1 parent 45c44989c8
commit e19fc6a9f8
272 files changed
+27052 -20

No files matched your search

@@ -0,0 +1,16 @@
import { connect } from 'react-redux';
import { closeModal } from '../../../actions/modal';
import ModalRoot from '../components/modal_root';
const mapStateToProps = state => ({
type: state.get('modal').modalType,
props: state.get('modal').modalProps,
});
const mapDispatchToProps = dispatch => ({
onClose () {
dispatch(closeModal());
},
});
export default connect(mapStateToProps, mapDispatchToProps)(ModalRoot);