clicking signin shows cta. fixes #1073

This commit is contained in:
Danny Coates 2019-01-08 14:06:15 -08:00
parent 39c1bec91a
commit 65be118e82
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -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) {