Skip to content

Commit

Permalink
added closing modal function to modal background
Browse files Browse the repository at this point in the history
  • Loading branch information
ivojovanovic01 committed Jan 20, 2024
1 parent ef74e01 commit a197c92
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 a197c92

Please sign in to comment.