Skip to content

Commit

Permalink
Merge pull request #134 from dump-hr/sponsor-form-closing
Browse files Browse the repository at this point in the history
added closing modal function to modal background
  • Loading branch information
bdeak4 authored Jan 20, 2024
2 parents ef74e01 + a197c92 commit 3881e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/sponsor/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const Modal: React.FC<ModalProps> = ({ form, close, currentForm }) => {

return (
<>
<div className={c.background}>
<div className={c.container}>
<div className={c.background} onClick={close}>
<div className={c.container} onClick={(e) => e.stopPropagation()}>
<img
src='/close.svg'
alt='Close'
Expand Down

0 comments on commit 3881e42

Please sign in to comment.