Created
February 23, 2017 02:37
-
-
Save ryandrewjohnson/7b0a602683b13d3ece31353806e84e0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { connect } from 'react-redux'; | |
| import Alert from 'components/Alert'; | |
| import Modal from 'components/Modal'; | |
| const mapStateToProps = state => ({ | |
| isOpen: state.modals.isAlertOpen, | |
| children: React.createElement(Alert) | |
| }); | |
| export default connect(mapStateToProps)(Modal); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment