From 5473f9f8a33cf4683f08cd1b43ba1b4201adcc7e Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 24 Nov 2020 10:42:16 +0100 Subject: [PATCH] modal dialog in react --- apps/remix-ide/src/app/ui/modaldialog.js | 33 ++++----- .../debugger-ui/src/lib/debugger-ui.tsx | 69 ++++++++++--------- nx.json | 3 + package.json | 3 +- tsconfig.json | 5 +- workspace.json | 32 ++++++++- 6 files changed, 95 insertions(+), 50 deletions(-) diff --git a/apps/remix-ide/src/app/ui/modaldialog.js b/apps/remix-ide/src/app/ui/modaldialog.js index 7d336a4121..b04d604e98 100644 --- a/apps/remix-ide/src/app/ui/modaldialog.js +++ b/apps/remix-ide/src/app/ui/modaldialog.js @@ -2,8 +2,8 @@ var yo = require('yo-yo') var css = require('./styles/modaldialog-styles') let incomingModal = false // in case modals are queued, ensure we are not hiding the last one. -module.exports = (title, content, ok, cancel, focusSelector, opts) => { - let agreed = true +module.exports = (title, content, ok, cancel, focusSelector, opts) => { //props + let agreed = true //state vars let footerIsActive = false opts = opts || {} var container = document.querySelector('.modal') @@ -130,21 +130,22 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => { function html (opts) { return yo` -