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