stubbed in modal dialog

This commit is contained in:
Danny Coates 2018-09-07 10:53:40 -07:00
parent 20528eb0d1
commit cdc15596df
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
11 changed files with 100 additions and 24 deletions

View file

@ -8,6 +8,7 @@ const signupPromo = require('../templates/signupPromo');
const activeBackground = require('../templates/activeBackground');
const fileList = require('../templates/fileList');
const profile = require('../templates/userAccount');
const modal = require('../templates/modal');
nanotiming.disabled = true;
const app = choo();
@ -18,9 +19,16 @@ function banner(state, emit) {
}
}
function modalDialog(state, emit) {
if (state.modal) {
return modal(state, emit);
}
}
function body(template) {
return function(state, emit) {
const b = html`<body class="background ${activeBackground(state)}">
${modalDialog(state, emit)}
${banner(state, emit)}
<main class="main">
<noscript>