modal try 1

This commit is contained in:
ddejongh 2015-05-26 16:52:53 +02:00
parent d685d68d15
commit 3a103c1d99
1 changed files with 6 additions and 3 deletions

View File

@ -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 <span/>;
}
},
render: function() {
return (
<Modal title="Share artwork">
<Modal title="Share artwork" onRequestHide={this.hide}>
</Modal>
);
}