From 32ef4b132749794595fc877074c3b9b1708bb7cc Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Tue, 23 Jun 2020 17:13:58 +0200 Subject: [PATCH] converted image to webp_tracedSVG --- src/@types/components/seo.d.ts | 23 +++++++++++------------ src/components/image.tsx | 2 +- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/@types/components/seo.d.ts b/src/@types/components/seo.d.ts index 949d697..b8d04ab 100644 --- a/src/@types/components/seo.d.ts +++ b/src/@types/components/seo.d.ts @@ -1,18 +1,17 @@ -interface SEOMetaNameInterface { - name: string - content: string -} - -interface SEOMetaPropertyInterface { - property: string - content: string -} - export interface SEOInterface { + title: string description?: string lang?: string - meta?: Array - title: string + meta?: Array< + | { + property: string + content: string + } + | { + name: string + content: string + } + > } export interface SEODataInterface { diff --git a/src/components/image.tsx b/src/components/image.tsx index 3b16791..bcd0f37 100644 --- a/src/components/image.tsx +++ b/src/components/image.tsx @@ -20,7 +20,7 @@ const Image: React.FC = () => { placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) { childImageSharp { fluid(maxWidth: 300) { - ...GatsbyImageSharpFluid + ...GatsbyImageSharpFluid_withWebp_tracedSVG } } }