mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
The default props doesn't seem to be working, hardcoded 'LABEL' for now. OnClick closes menu
This commit is contained in:
parent
7eff6d968e
commit
204e42494a
@ -29,10 +29,16 @@ module.exports = React.createClass({
|
||||
return({ label : "LABEL" });
|
||||
},
|
||||
|
||||
onLabelClick: function() {
|
||||
if (this.props.onFinished) this.props.onFinished();
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return (
|
||||
<div>
|
||||
{ this.props.label }
|
||||
<div className="mx_ContextualMenu_field" onClick={ this.onLabelClick }>
|
||||
LABEL
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user