mirror of https://github.com/explosion/spaCy.git
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 }) => {
|
||||
return (
|
||||
<span
|
||||
class={classes['figure-fill']}
|
||||
className={classes['figure-fill']}
|
||||
style={{ paddingBottom: `${(image.height / image.width) * 100}%` }}
|
||||
>
|
||||
<ImageNext src={image.src} {...props} fill />
|
||||
|
|
Loading…
Reference in New Issue