Skip to content

Commit

Permalink
DYN-8121 SplashScreen Disable Close Button
Browse files Browse the repository at this point in the history
Remove all the code related to Close Button in SplashScreen
  • Loading branch information
RobertGlobant20 committed Jan 14, 2025
1 parent da98f0b commit bed2365
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
31 changes: 0 additions & 31 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
15 changes: 0 additions & 15 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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 (
<Container fluid>
Expand Down Expand Up @@ -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;

0 comments on commit bed2365

Please sign in to comment.