Skip to content

Commit

Permalink
revert: trigger errors
Browse files Browse the repository at this point in the history
Signed-off-by: Tharun T <[email protected]>
  • Loading branch information
dottharun committed Jul 15, 2024
1 parent 5d64233 commit c6e3e6d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/image.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import React from "react";
import { GatsbyImage } from "gatsby-plugin-image";

const Image = ({ childImageSharp, extension, publicURL, alt, test_var, ...rest }) => {
const Image = ({ childImageSharp, extension, publicURL, alt, ...rest }) => {

if (!childImageSharp && extension === "svg") {
const b=1+2;
return (
<div className="old-gatsby-image-wrapper">
<img src={publicURL} alt={alt} />
</div>
);
}

console.log(b);

return <GatsbyImage
key={publicURL} image={childImageSharp?.gatsbyImageData} {...rest} alt={alt}/>;
};
Expand Down

0 comments on commit c6e3e6d

Please sign in to comment.