Created
December 30, 2016 00:16
-
-
Save RoyalSix/5dd3abf56fb237c4b6eed76fe5c38f54 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
//app.js | |
this.state.projectModalProps = { | |
showCreateProject: (input) => { | |
var modal = CoreStore.getShowProjectModal(); | |
if (input) { | |
modal = input; | |
CoreStore.projectModalVisibility = input; | |
} | |
if (modal === 'Languages') { | |
this.setState({ | |
showModal: true, | |
}); | |
} else if (modal === "") { | |
this.setState({ | |
showModal: false | |
}); | |
} | |
} | |
} | |
render () { | |
return ( | |
<ProjecModal {...this.state.projectModalProps} | |
) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment