diff --git a/src/components/seo.js b/src/components/seo.js index aee4d4505..ea1290f93 100644 --- a/src/components/seo.js +++ b/src/components/seo.js @@ -5,10 +5,10 @@ * See: https://www.gatsbyjs.org/docs/use-static-query/ */ -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( @@ -23,9 +23,9 @@ function SEO({ description, lang, meta, title }) { } } ` - ) + ); - const metaDescription = description || site.siteMetadata.description + const metaDescription = description || site.siteMetadata.description; return ( - ) + ); } 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 +export default SEO;