Skip to content

Commit

Permalink
fix: updated files to work with new linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Apr 21, 2020
1 parent 210e49f commit 1cf8851
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -23,9 +23,9 @@ function SEO({ description, lang, meta, title }) {
}
}
`
)
);

const metaDescription = description || site.siteMetadata.description
const metaDescription = description || site.siteMetadata.description;

return (
<Helmet
Expand Down Expand Up @@ -69,20 +69,20 @@ 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
export default SEO;

0 comments on commit 1cf8851

Please sign in to comment.