This commit is contained in:
Lim Chee Aun 2023-03-07 12:58:43 +08:00
parent 2cb22c34e3
commit 8d501668d0

View file

@ -250,31 +250,6 @@ function MediaModal({
</div>
</Modal>
)}
{!!showMediaAlt && (
<Modal
class="light"
onClick={(e) => {
if (e.target === e.currentTarget) {
setShowMediaAlt(false);
}
}}
>
<div class="sheet">
<header>
<h2>Media description</h2>
</header>
<main>
<p
style={{
whiteSpace: 'pre-wrap',
}}
>
{showMediaAlt}
</p>
</main>
</div>
</Modal>
)}
</>
);
}