mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-12-03 01:22:29 +00:00
18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
|
const MenubarMixin = exports.MenubarMixin = {
|
||
|
getInitialState() {
|
||
|
return {
|
||
|
show: false
|
||
|
}
|
||
|
},
|
||
|
|
||
|
toggleShow() {
|
||
|
this.setState({ show: !this.state.show });
|
||
|
},
|
||
|
|
||
|
componentClass() {
|
||
|
let componentClass = ["dropdown", "messages-menu"];
|
||
|
if (this.state.show) componentClass.push("open");
|
||
|
return componentClass.join(" ");
|
||
|
}
|
||
|
};
|