From 937502b8dd194d742d61b9db4373bd9a3e4c509d Mon Sep 17 00:00:00 2001 From: thoran Date: Mon, 13 Apr 2020 05:21:43 +0530 Subject: [PATCH 1/2] added close fn. to legal modal --- app/ui/legal.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/ui/legal.js b/app/ui/legal.js index 41763226b..64703a82c 100644 --- a/app/ui/legal.js +++ b/app/ui/legal.js @@ -1,17 +1,18 @@ const html = require('choo/html'); const modal = require('./modal'); -module.exports = function(state, emit) { +module.exports = function(state, emit, close) { return html`
- ${state.modal && modal(state, emit)} + ${state.modal && modal(state, emit, close)}
+
Close ✕

${state.translate('legalTitle')}

-

${state.translate('legalDateStamp')}

+

${state.translate('legalDateStamp')}

When Mozilla receives information from you, our From 1e6c9feaca853f5e55b7dd29d04c2b8593bb3c10 Mon Sep 17 00:00:00 2001 From: thoran Date: Mon, 13 Apr 2020 05:25:01 +0530 Subject: [PATCH 2/2] added close fn. to legal modal --- app/ui/legal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/legal.js b/app/ui/legal.js index 64703a82c..ab67043dd 100644 --- a/app/ui/legal.js +++ b/app/ui/legal.js @@ -1,10 +1,10 @@ const html = require('choo/html'); const modal = require('./modal'); -module.exports = function(state, emit, close) { +module.exports = function(state, emit) { return html`

- ${state.modal && modal(state, emit, close)} + ${state.modal && modal(state, emit)}