Skip to content

Commit c89d35b

Browse files
authored
Merge pull request #6992 from helper-uttam/fix/helper-uttam/svg-image-prop-spread
fix(image): resolve childImageSharp warnings for SVGs by spreading {.…
2 parents 90fc10e + 0166d62 commit c89d35b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/sections/General/Navigation/utility

src/sections/General/Navigation/utility/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Image = ({ childImageSharp, extension, publicURL, alt, ...rest }) => {
66
if (!childImageSharp && extension === "svg") {
77
return (
88
<div className="old-gatsby-image-wrapper">
9-
<img src={publicURL} alt={alt} />
9+
<img src={publicURL} {...rest} alt={alt} />
1010
</div>
1111
);
1212
} else {

0 commit comments

Comments
 (0)