example-mailbox: v6

This commit is contained in:
Yoshua Wuyts
2016-05-14 10:44:44 +07:00
parent 32ae62d655
commit 1481cb0f6c
5 changed files with 38 additions and 54 deletions
+11 -13
View File
@@ -5,17 +5,15 @@ const pathname = require('../elements/pathname')
const email = require('../elements/email')
const nav = require('../elements/nav')
module.exports = function () {
return function (params, state, send) {
return choo.view`
<main class="mw5 mw7-ns center cf">
${pathname(params, state, send)}
${nav(params, state, send)}
<section class="fl mt4 w-80 db">
${emailList(params, state, send)}
${email(params, state, send)}
</section>
</main>
`
}
module.exports = function (params, state, send) {
return choo.view`
<main class="mw5 mw7-ns center cf">
${pathname(params, state, send)}
${nav(params, state, send)}
<section class="fl mt4 w-80 db">
${emailList(params, state, send)}
${email(params, state, send)}
</section>
</main>
`
}