21 lines
325 B
JavaScript
21 lines
325 B
JavaScript
module.exports = class {
|
|
onCreate() {
|
|
this.state = {
|
|
loggingIn: false,
|
|
loggingOut: false,
|
|
enabled: false,
|
|
}
|
|
}
|
|
|
|
toggleEnabled() {
|
|
this.state.enabled = !this.state.enabled
|
|
}
|
|
|
|
loginClicked() {
|
|
this.state.loggingIn = true
|
|
}
|
|
|
|
logoutClicked() {
|
|
this.state.loggingOut = true
|
|
}
|
|
} |