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