pointer cursor for images (#342)

This commit is contained in:
Salih Altun 2024-05-17 21:52:33 +03:00 committed by GitHub
parent 55b1699f3e
commit 9c19442fed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,11 @@ function ZoomableImage(props: HTMLImageElementProps) {
return ( return (
<div> <div>
<img {...props} onClick={openModal} /> <img
{...props}
onClick={openModal}
className={clsx("cursor-pointer", props.className)}
/>
{modalOpen && ( {modalOpen && (
<div <div
className={clsx( className={clsx(