From 74a9d1568ba59a9fd0c609ba03d3358f3ffb9b3a Mon Sep 17 00:00:00 2001 From: Riley Shaw Date: Sat, 6 Mar 2021 19:43:43 -0800 Subject: [PATCH] Content: delete an unused component from the initial preset --- src/components/image.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/components/image.js diff --git a/src/components/image.js b/src/components/image.js deleted file mode 100644 index 66504fec3..000000000 --- a/src/components/image.js +++ /dev/null @@ -1,34 +0,0 @@ -import {useStaticQuery, graphql} from 'gatsby'; -import Img from 'gatsby-image'; -import React from 'react'; - -/* - * This component is built using `gatsby-image` to automatically serve optimized - * images with lazy loading and reduced file sizes. The image is loaded using a - * `useStaticQuery`, which allows us to load the image from directly within this - * component, rather than having to pass the image data down from pages. - * - * For more information, see the docs: - * - `gatsby-image`: https://gatsby.dev/gatsby-image - * - `useStaticQuery`: https://www.gatsbyjs.org/docs/use-static-query/ - */ - -const Image = () => { - const data = useStaticQuery(graphql` - query { - placeholderImage: file( - relativePath: {eq: "gatsby-astronaut.png"} - ) { - childImageSharp { - fluid(maxWidth: 300) { - ...GatsbyImageSharpFluid - } - } - } - } - `); - - return ; -}; - -export default Image;