added modal to other pages

This commit is contained in:
Danny Coates 2019-01-29 13:08:54 -08:00
parent 87a517a169
commit 5eb24065b6
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
4 changed files with 12 additions and 4 deletions

View File

@ -1,9 +1,11 @@
const html = require('choo/html');
const assets = require('../../common/assets');
const modal = require('./modal');
module.exports = function(state) {
module.exports = function(state, emit) {
return html`
<main class="main container">
${state.modal && modal(state, emit)}
<div
class="flex flex-col items-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full md:h-full"
>

View File

@ -1,9 +1,11 @@
const html = require('choo/html');
const raw = require('choo/html/raw');
const modal = require('./modal');
module.exports = function(state) {
module.exports = function(state, emit) {
return html`
<main class="main container">
${state.modal && modal(state, emit)}
<div
class="flex flex-col items-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full md:h-full"
>

View File

@ -1,9 +1,11 @@
const html = require('choo/html');
const assets = require('../../common/assets');
const modal = require('./modal');
module.exports = function(state) {
module.exports = function(state, emit) {
return html`
<main class="main container">
${state.modal && modal(state, emit)}
<div
class="flex flex-col items-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full"
>

View File

@ -1,7 +1,8 @@
const html = require('choo/html');
const assets = require('../../common/assets');
const modal = require('./modal');
module.exports = function(state) {
module.exports = function(state, emit) {
let strings = {};
let why = '';
let url = '';
@ -34,6 +35,7 @@ module.exports = function(state) {
return html`
<main class="main container">
${state.modal && modal(state, emit)}
<div
class="flex flex-col items-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full md:h-full"
>