handle out click fn removed
This commit is contained in:
parent
9e689192f3
commit
88487e3d7e
|
|
@ -11,9 +11,6 @@ import { ReactComponent as Receipt } from "../../icons/receipt.svg";
|
|||
import { ReactComponent as Task } from "../../icons/task.svg";
|
||||
import { ReactComponent as Lines } from "../../icons/lines.svg";
|
||||
|
||||
// IMPORT HELPERS
|
||||
import { handleOutClick } from "../../helpers/handleOutClick";
|
||||
|
||||
// IMPORT COMPONENTS
|
||||
import CardStage1 from "../CardStages/CardStage1";
|
||||
import CardStage2 from "../CardStages/CardStage2";
|
||||
|
|
@ -33,14 +30,7 @@ const ModalForm = ({
|
|||
const [data, setData] = useState({});
|
||||
|
||||
return (
|
||||
<section
|
||||
className={modalOpen ? "modal active" : "modal"}
|
||||
onClick={(e) => {
|
||||
if (handleOutClick(e.target, window.current)) {
|
||||
setModalOpen(false);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<section className={modalOpen ? "modal active" : "modal"}>
|
||||
<div className="modal-container">
|
||||
<div className="modal-inner" ref={window}>
|
||||
<div className="modal-window">
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ import { ReactComponent as Img4 } from "../../icons/credit4.svg";
|
|||
import { ReactComponent as Img5 } from "../../icons/credit5.svg";
|
||||
import { ReactComponent as Img6 } from "../../icons/credit6.svg";
|
||||
|
||||
// IMPORT HELPERS
|
||||
import { handleOutClick } from "../../helpers/handleOutClick";
|
||||
|
||||
// IMPORT COMPONENTS
|
||||
import CreditStage1 from "../CreditStages/CreditStage1";
|
||||
import CreditStage2 from "../CreditStages/CreditStage2";
|
||||
|
|
@ -43,11 +40,6 @@ const CreditModal = ({
|
|||
return (
|
||||
<section
|
||||
className={modalOpen ? "modal credit-modal active" : "modal credit-modal"}
|
||||
onClick={(e) => {
|
||||
if (handleOutClick(e.target, window.current)) {
|
||||
setModalOpen(false);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div className="modal-container">
|
||||
<div className="modal-inner" ref={window}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue