Skip to content

Instantly share code, notes, and snippets.

@RoyalSix
Created December 30, 2016 00:16
Show Gist options
  • Save RoyalSix/5dd3abf56fb237c4b6eed76fe5c38f54 to your computer and use it in GitHub Desktop.
Save RoyalSix/5dd3abf56fb237c4b6eed76fe5c38f54 to your computer and use it in GitHub Desktop.
//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