diff --git a/js/components/edition.js b/js/components/edition.js index d8b9899c..69a2fbee 100644 --- a/js/components/edition.js +++ b/js/components/edition.js @@ -78,17 +78,20 @@ let ShareModal = React.createClass({ getInitialState: function() { return { - isModalOpen: true + isOpen: true }; }, + hide: function(){ + this.setState({isOpen: false}) + }, renderOverlay: function() { - if (!this.state.isModalOpen) { + if (!this.state.isOpen) { return ; } }, render: function() { return ( - + ); }