hide signup promo when logged in

This commit is contained in:
Danny Coates 2018-08-31 15:15:25 -07:00
parent 85185d048c
commit 00550872d7
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 6 additions and 14 deletions

View file

@ -1,6 +1,9 @@
const html = require('choo/html');
module.exports = function(state) {
if (state.user.loggedIn) {
return null;
}
return html`
<div class="signupPromo">
<div class="signupPromo__title">${state.translate('signInPromoText')}</div>