From bed23656900d638efdf3fe664477a933f612eeb9 Mon Sep 17 00:00:00 2001 From: Roberto T Date: Tue, 14 Jan 2025 10:13:07 -0600 Subject: [PATCH] DYN-8121 SplashScreen Disable Close Button Remove all the code related to Close Button in SplashScreen --- src/App.css | 31 ------------------------------- src/App.js | 15 --------------- 2 files changed, 46 deletions(-) diff --git a/src/App.css b/src/App.css index e3d4ff2..5469ccd 100644 --- a/src/App.css +++ b/src/App.css @@ -19,35 +19,4 @@ .screenBackground { height: 412px; width: 394px; -} - -.close { - position: absolute; - cursor: pointer; - right: 32px; - top: 15px; - width: 16px; - height: 16px; - opacity: 0.3; -} - -.close:hover { - opacity: 1; -} - -.close:before, .close:after { - position: absolute; - left: 25px; - content: ' '; - height: 16px; - width: 2px; - background-color: #333; -} - -.close:before { - transform: rotate(45deg); -} - -.close:after { - transform: rotate(-45deg); } \ No newline at end of file diff --git a/src/App.js b/src/App.js index e66e536..e5ff81f 100644 --- a/src/App.js +++ b/src/App.js @@ -26,7 +26,6 @@ class App extends React.Component { window.setLoadingDone = this.setLoadingDone.bind(this); window.setSignInStatus = this.setSignInStatus.bind(this); this.handleCheckedChange = this.handleCheckedChange.bind(this); - this.closeDynamo = this.closeDynamo.bind(this); } handleCheckedChange = (checked) => { @@ -45,14 +44,6 @@ class App extends React.Component { //TODO : As alternative we can receive the event from the Childs like the Static component } - handleKeyDown = (e) => { - if (e.key === 'Escape') { - if (this.state.loadingDone) { - this.closeDynamo(); - } - } - }; - render() { return ( @@ -132,12 +123,6 @@ class App extends React.Component { loadingDone: true }); }; - - closeDynamo() { - if (chrome.webview !== undefined) { - chrome.webview.hostObjects.scriptObject.CloseWindowPreserve(this.state.isChecked); - } - } } export default App;