From a1268eb07b9c16f05c16a95891260b03119e53c2 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Thu, 9 Sep 2021 13:43:45 -0400 Subject: Eslint, Prettier, etc --- src/components/SEO.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/components/SEO.tsx') diff --git a/src/components/SEO.tsx b/src/components/SEO.tsx index 26018e9..e3683df 100644 --- a/src/components/SEO.tsx +++ b/src/components/SEO.tsx @@ -3,7 +3,19 @@ import PropTypes from "prop-types"; import { Helmet } from "react-helmet"; import { useStaticQuery, graphql } from "gatsby"; -function SEO({ description, lang, meta, title }) { +interface MetaProps { + name: string; + content: string; +} + +interface SEOProps { + description: string; + lang: string; + meta: MetaProps[]; + title: string; +} + +function SEO({ description, lang, meta, title }: SEOProps): React.ReactElement { const { site } = useStaticQuery( graphql` query { -- cgit