reorged routes/index.js (broken)

This commit is contained in:
Danny Coates 2018-10-01 14:20:26 -07:00
parent 8964387331
commit 5b939d2c95
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 30 additions and 30 deletions

View file

@ -1,14 +1,16 @@
const html = require('choo/html');
const userAccount = require('../../templates/userAccount');
const version = require('../../../package.json').version;
const { browserName } = require('../../utils');
module.exports = function(state) {
module.exports = function(state, emit) {
const browser = browserName();
const feedbackUrl = `https://qsurvey.mozilla.com/s3/txp-firefox-send?ver=${version}&browser=${browser}`;
const header = html`
<header class="header">
<h1>Firefox Send</h1>
${userAccount(state, emit)}
<a href="${feedbackUrl}"
rel="noreferrer noopener"
class="feedback"