Skip to content

Commit cfc6413

Browse files
soobinggatsbybot
and
gatsbybot
authoredMar 20, 2020
Unused variable and wrong propTypes (#22426)
* delete unused variable * change type string to number Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
1 parent 56023e8 commit cfc6413

File tree

1 file changed

+4
-5
lines changed
  • docs/tutorial/seo-and-social-sharing-cards-tutorial

1 file changed

+4
-5
lines changed
 

‎docs/tutorial/seo-and-social-sharing-cards-tutorial/index.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ SEO.propTypes = {
269269
// highlight-start
270270
image: PropTypes.shape({
271271
src: PropTypes.string.isRequired,
272-
height: PropTypes.string.isRequired,
273-
width: PropTypes.string.isRequired,
272+
height: PropTypes.number.isRequired,
273+
width: PropTypes.number.isRequired,
274274
}),
275275
// highlight-end
276276
}
@@ -424,8 +424,8 @@ SEO.propTypes = {
424424
title: PropTypes.string.isRequired,
425425
image: PropTypes.shape({
426426
src: PropTypes.string.isRequired,
427-
height: PropTypes.string.isRequired,
428-
width: PropTypes.string.isRequired,
427+
height: PropTypes.number.isRequired,
428+
width: PropTypes.number.isRequired,
429429
}),
430430
// highlight-next-line
431431
pathname: PropTypes.string,
@@ -511,7 +511,6 @@ class BlogPostTemplate extends React.Component {
511511
render() {
512512
const post = this.props.data.markdownRemark
513513
const siteTitle = this.props.data.site.siteMetadata.title
514-
const { previous, next } = this.props.pageContext
515514
const image = post.frontmatter.image
516515
? post.frontmatter.image.childImageSharp.resize
517516
: null // highlight-line

0 commit comments

Comments
 (0)
Please sign in to comment.