You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
428 B
17 lines
428 B
8 years ago
|
import { connect } from 'react-redux';
|
||
8 years ago
|
import { closeModal } from '../../../actions/modal';
|
||
|
import ModalRoot from '../components/modal_root';
|
||
8 years ago
|
|
||
|
const mapStateToProps = state => ({
|
||
8 years ago
|
type: state.get('modal').modalType,
|
||
|
props: state.get('modal').modalProps
|
||
8 years ago
|
});
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
8 years ago
|
onClose () {
|
||
8 years ago
|
dispatch(closeModal());
|
||
|
},
|
||
|
});
|
||
|
|
||
8 years ago
|
export default connect(mapStateToProps, mapDispatchToProps)(ModalRoot);
|