mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
modal try 1
This commit is contained in:
parent
d685d68d15
commit
3a103c1d99
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user