bmcmahen / react-image-enlarger

Simple medium.com style image zooming with gesture support
https://codesandbox.io/embed/adoring-sun-dz5yj
70 stars 6 forks source link

Alt tag raises type error #38

Open sourceful-wing opened 1 year ago

sourceful-wing commented 1 year ago

src/components/ImageGrid.tsx:43:17 - error TS2322: Type '{ className: string; style: { width: string; height: string; }; alt: string; src: string; onClick: () => void; onRequestClose: () => void; zoomed: boolean; }' is not assignable to type 'IntrinsicAttributes & ImageEnlargerProps & { children?: ReactNode; }'. Property 'alt' does not exist on type 'IntrinsicAttributes & ImageEnlargerProps & { children?: ReactNode; }'.

43 alt='View more of this design'