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.

16 lines
428 B

  1. import { connect } from 'react-redux';
  2. import { closeModal } from '../../../actions/modal';
  3. import ModalRoot from '../components/modal_root';
  4. const mapStateToProps = state => ({
  5. type: state.get('modal').modalType,
  6. props: state.get('modal').modalProps
  7. });
  8. const mapDispatchToProps = dispatch => ({
  9. onClose () {
  10. dispatch(closeModal());
  11. },
  12. });
  13. export default connect(mapStateToProps, mapDispatchToProps)(ModalRoot);