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
436 B
17 lines
436 B
![]()
8 years ago
|
import { connect } from 'react-redux';
|
||
![]()
7 years ago
|
import { closeModal } from 'flavours/glitch/actions/modal';
|
||
![]()
8 years ago
|
import ModalRoot from '../components/modal_root';
|
||
![]()
8 years ago
|
|
||
|
const mapStateToProps = state => ({
|
||
![]()
8 years ago
|
type: state.get('modal').modalType,
|
||
![]()
7 years ago
|
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);
|