mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
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:
parent
9555e7aecf
commit
0a70696923
|
@ -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 />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user