diff --git a/src/components/Modal.js b/src/components/Modal.js index 2de49f5..dcecae1 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -35,7 +35,9 @@ export default class Modal extends React.Component { return this.state.style.display !== state.style.display } - handleClick() { + handleClick(e) { + if(e.target.classList[0] !== "modal") return; + this.setState({ style: { display: "none" } }); diff --git a/src/components/Modal/SettingsManager.js b/src/components/Modal/SettingsManager.js index fa51eb6..786938a 100644 --- a/src/components/Modal/SettingsManager.js +++ b/src/components/Modal/SettingsManager.js @@ -4,11 +4,21 @@ import Modal from '../Modal'; const Settings = window.require("electron-settings"); export default class SettingsManager extends Modal { - + constructor() { + super(); + this.JSX = +