mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 01:05:34 +03:00
Use onClose for this
This commit is contained in:
parent
f26dbeb79a
commit
9ea7a1f4db
1 changed files with 2 additions and 4 deletions
|
@ -2316,10 +2316,8 @@ function MediaAttachment({
|
|||
</div>
|
||||
{showModal && (
|
||||
<Modal
|
||||
onClick={(e) => {
|
||||
if (e.target === e.currentTarget) {
|
||||
onClose={() => {
|
||||
setShowModal(false);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div id="media-sheet" class="sheet sheet-max">
|
||||
|
|
Loading…
Reference in a new issue