Last active
February 24, 2017 02:56
-
-
Save ryandrewjohnson/37eba638fabb2f829f5406f7799fe181 to your computer and use it in GitHub Desktop.
This file contains 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 ImageCarousel from 'components/ImageCarousel'; | |
import Modal from 'components/Modal'; | |
const mapStateToProps = state => ({ | |
isOpen: state.modals.isImageModalOpen, | |
children: React.createElement(ImageCarousel, { images: state.images }) | |
}); | |
export default connect(mapStateToProps)(Modal); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment