Created
June 18, 2016 05:56
-
-
Save davidgilbertson/28dc3cd3ca74f2f58005726259b88ba9 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 * as actions from '../../data/actions.js'; | |
| import ExportDataModal from './ExportDataModal.jsx'; | |
| import SignInModal from './SignInModal.jsx'; | |
| import FeedbackModal from './FeedbackModal.jsx'; | |
| import BoxDetailsModal from './BoxDetailsModal.jsx'; | |
| const ModalConductor = props => { | |
| switch (props.currentModal) { | |
| case 'EXPORT_DATA': | |
| return <ExportDataModal {...props}/>; | |
| case 'SOCIAL_SIGN_IN': | |
| return <SignInModal {...props}/>; | |
| case 'FEEDBACK': | |
| return <FeedbackModal {...props}/>; | |
| case 'EDIT_BOX': | |
| return <BoxDetailsModal {...props}/>; | |
| default: | |
| return null; | |
| } | |
| }; | |
| export default connect(state => state, () => actions)(ModalConductor); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment