Skip to content

Commit

Permalink
Unused variable and wrong propTypes (#22426)
Browse files Browse the repository at this point in the history
* delete unused variable

* change type string to number

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
soobing and gatsbybot committed Mar 20, 2020
1 parent 56023e8 commit cfc6413
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/tutorial/seo-and-social-sharing-cards-tutorial/index.md
Expand Up @@ -269,8 +269,8 @@ SEO.propTypes = {
// highlight-start
image: PropTypes.shape({
src: PropTypes.string.isRequired,
height: PropTypes.string.isRequired,
width: PropTypes.string.isRequired,
height: PropTypes.number.isRequired,
width: PropTypes.number.isRequired,
}),
// highlight-end
}
Expand Down Expand Up @@ -424,8 +424,8 @@ SEO.propTypes = {
title: PropTypes.string.isRequired,
image: PropTypes.shape({
src: PropTypes.string.isRequired,
height: PropTypes.string.isRequired,
width: PropTypes.string.isRequired,
height: PropTypes.number.isRequired,
width: PropTypes.number.isRequired,
}),
// highlight-next-line
pathname: PropTypes.string,
Expand Down Expand Up @@ -511,7 +511,6 @@ class BlogPostTemplate extends React.Component {
render() {
const post = this.props.data.markdownRemark
const siteTitle = this.props.data.site.siteMetadata.title
const { previous, next } = this.props.pageContext
const image = post.frontmatter.image
? post.frontmatter.image.childImageSharp.resize
: null // highlight-line
Expand Down

0 comments on commit cfc6413

Please sign in to comment.