clicking signin shows cta. fixes #1073
This commit is contained in:
parent
39c1bec91a
commit
65be118e82
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
const html = require('choo/html');
|
const html = require('choo/html');
|
||||||
const Component = require('choo/component');
|
const Component = require('choo/component');
|
||||||
|
const signupDialog = require('./signupDialog');
|
||||||
|
|
||||||
class Account extends Component {
|
class Account extends Component {
|
||||||
constructor(name, state, emit) {
|
constructor(name, state, emit) {
|
||||||
|
@ -26,7 +27,8 @@ class Account extends Component {
|
||||||
|
|
||||||
login(event) {
|
login(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.emit('login');
|
this.state.modal = signupDialog();
|
||||||
|
this.emit('render');
|
||||||
}
|
}
|
||||||
|
|
||||||
logout(event) {
|
logout(event) {
|
||||||
|
|
Loading…
Reference in a new issue