Fix wrong HTML element attribute (#12151)

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-24 14:35:31 +01:00 committed by GitHub
parent 9555e7aecf
commit 0a70696923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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