From cfc6413b067643f402b3dca0b2af3aca9d2324a2 Mon Sep 17 00:00:00 2001 From: Soobin Bak Date: Fri, 20 Mar 2020 20:02:28 +0900 Subject: [PATCH] Unused variable and wrong propTypes (#22426) * delete unused variable * change type string to number Co-authored-by: gatsbybot --- .../seo-and-social-sharing-cards-tutorial/index.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/tutorial/seo-and-social-sharing-cards-tutorial/index.md b/docs/tutorial/seo-and-social-sharing-cards-tutorial/index.md index a1fa381c3b674..607f026a74588 100644 --- a/docs/tutorial/seo-and-social-sharing-cards-tutorial/index.md +++ b/docs/tutorial/seo-and-social-sharing-cards-tutorial/index.md @@ -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 } @@ -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, @@ -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