From
-
To
-
- `
-}
-
function createMessage (message, mailbox) {
return choo.view`
diff --git a/examples/mailbox/views/email.js b/examples/mailbox/views/email.js
index c200804..662daeb 100644
--- a/examples/mailbox/views/email.js
+++ b/examples/mailbox/views/email.js
@@ -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`
-
- ${pathname(params, state, send)}
- ${nav(params, state, send)}
-
- ${emailList(params, state, send)}
- ${email(params, state, send)}
-
-
- `
- }
+module.exports = function (params, state, send) {
+ return choo.view`
+
+ ${pathname(params, state, send)}
+ ${nav(params, state, send)}
+
+ ${emailList(params, state, send)}
+ ${email(params, state, send)}
+
+
+ `
}
diff --git a/examples/mailbox/views/empty.js b/examples/mailbox/views/empty.js
index d972ee4..88118a8 100644
--- a/examples/mailbox/views/empty.js
+++ b/examples/mailbox/views/empty.js
@@ -4,14 +4,12 @@ const empty = require('../elements/empty-mailbox')
const pathname = require('../elements/pathname')
const nav = require('../elements/nav')
-module.exports = function () {
- return function (params, state, send) {
- return choo.view`
-
- ${pathname(params, state, send)}
- ${nav(params, state, send)}
- ${empty(params, state, send)}
-
- `
- }
+module.exports = function (params, state, send) {
+ return choo.view`
+
+ ${pathname(params, state, send)}
+ ${nav(params, state, send)}
+ ${empty(params, state, send)}
+
+ `
}
diff --git a/examples/mailbox/views/mailbox.js b/examples/mailbox/views/mailbox.js
index c4747ec..24c76be 100644
--- a/examples/mailbox/views/mailbox.js
+++ b/examples/mailbox/views/mailbox.js
@@ -4,16 +4,14 @@ const emailList = require('../elements/email-list')
const pathname = require('../elements/pathname')
const nav = require('../elements/nav')
-module.exports = function () {
- return function (params, state, send) {
- return choo.view`
-
- ${pathname(params, state, send)}
- ${nav(params, state, send)}
-
- ${emailList(params, state, send)}
-
-
- `
- }
+module.exports = function (params, state, send) {
+ return choo.view`
+
+ ${pathname(params, state, send)}
+ ${nav(params, state, send)}
+
+ ${emailList(params, state, send)}
+
+
+ `
}