From 3a103c1d9928d09f117ed605643e1740ee648185 Mon Sep 17 00:00:00 2001 From: ddejongh Date: Tue, 26 May 2015 16:52:53 +0200 Subject: [PATCH] modal try 1 --- js/components/edition.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ( - + ); }