Fix wrong HTML element attribute

Originally introduced in 62b9c9c6d7

Original error: Warning: Invalid DOM property `class`. Did you mean `className`?

React doesn't have `class`, it uses `className`.
This commit is contained in:
Marcus Blättermann 2023-01-23 14:37:47 +01:00
parent 950fceceb6
commit c3fd7b6c6e
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -104,7 +104,7 @@ const Image = ({ src, alt, title, href, ...props }) => {
const ImageFill = ({ image, ...props }) => {
return (
<span
class={classes['figure-fill']}
className={classes['figure-fill']}
style={{ paddingBottom: `${(image.height / image.width) * 100}%` }}
>
<ImageNext src={image.src} {...props} fill />