diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/SEO.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/SEO.tsx b/src/components/SEO.tsx index ce86222..26018e9 100644 --- a/src/components/SEO.tsx +++ b/src/components/SEO.tsx @@ -1,7 +1,7 @@ -import React from "react" -import PropTypes from "prop-types" -import { Helmet } from "react-helmet" -import { useStaticQuery, graphql } from "gatsby" +import React from "react"; +import PropTypes from "prop-types"; +import { Helmet } from "react-helmet"; +import { useStaticQuery, graphql } from "gatsby"; function SEO({ description, lang, meta, title }) { const { site } = useStaticQuery( @@ -16,8 +16,8 @@ function SEO({ description, lang, meta, title }) { } } ` - ) - const metaDescription = description || site.siteMetadata.description + ); + const metaDescription = description || site.siteMetadata.description; return ( <Helmet htmlAttributes={{ @@ -60,17 +60,17 @@ function SEO({ description, lang, meta, title }) { }, ].concat(meta)} /> - ) + ); } SEO.defaultProps = { lang: `en`, meta: [], description: ``, -} +}; SEO.propTypes = { description: PropTypes.string, lang: PropTypes.string, meta: PropTypes.arrayOf(PropTypes.object), title: PropTypes.string.isRequired, -} -export default SEO
\ No newline at end of file +}; +export default SEO; |
