remove unused dependencies, fix inconsistencies, remove PropTypes
This commit is contained in:
parent
a7626a82d2
commit
90e99d12f0
6 changed files with 13 additions and 96 deletions
|
|
@ -71,10 +71,4 @@ class Template extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
Template.propTypes = {
|
||||
children: React.PropTypes.func,
|
||||
location: React.PropTypes.object,
|
||||
route: React.PropTypes.object,
|
||||
}
|
||||
|
||||
export default Template
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class BlogIndex extends React.Component {
|
|||
|
||||
return (
|
||||
<div>
|
||||
<Helmet title={get(this, 'props.data.site.siteMetadata.title')} />
|
||||
<Helmet title={siteTitle} />
|
||||
<Bio />
|
||||
{posts.map(post => {
|
||||
if (post.node.path !== '/404/') {
|
||||
|
|
@ -29,7 +29,7 @@ class BlogIndex extends React.Component {
|
|||
style={{ boxShadow: 'none' }}
|
||||
to={post.node.frontmatter.path}
|
||||
>
|
||||
{post.node.frontmatter.title}
|
||||
{title}
|
||||
</Link>
|
||||
</h3>
|
||||
<small>{post.node.frontmatter.date}</small>
|
||||
|
|
@ -43,10 +43,6 @@ class BlogIndex extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
BlogIndex.propTypes = {
|
||||
route: React.PropTypes.object,
|
||||
}
|
||||
|
||||
export default BlogIndex
|
||||
|
||||
export const pageQuery = graphql`
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import React from 'react'
|
||||
import Helmet from 'react-helmet'
|
||||
import Link from 'gatsby-link'
|
||||
import get from 'lodash/get'
|
||||
|
||||
import Bio from '../components/Bio'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue