mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 15:42:18 +00:00
17 lines
335 B
JavaScript
17 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(" ");
|
|
}
|
|
};
|