mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-26 14:21:01 +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(" ");
|
|
}
|
|
};
|