ESLintify Part 2 (#841)

* ESLintify Part 2

* Fix

* Fix tests

* Fix tests

* Fix tests
This commit is contained in:
Yangshun Tay 2018-07-10 21:53:08 -07:00 committed by GitHub
parent 4267337fb0
commit 5ac2cee658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 188 additions and 190 deletions

View file

@ -103,7 +103,7 @@ class BlogPostLayout extends React.Component {
const hasOnPageNav = this.props.config.onPageNav === 'separate';
const post = this.props.metadata;
post.path = utils.getPath(post.path, this.props.config.cleanUrl);
let blogSidebarTitleConfig = this.props.config.blogSidebarTitle || {};
const blogSidebarTitleConfig = this.props.config.blogSidebarTitle || {};
return (
<Site
className={classNames('sideNavVisible', {
@ -111,13 +111,13 @@ class BlogPostLayout extends React.Component {
})}
url={'blog/' + post.path}
title={this.props.metadata.title}
language={'en'}
language="en"
description={this.getDescription()}
config={this.props.config}
metadata={{blog: true}}>
<div className="docMainWrapper wrapper">
<BlogSidebar
language={'en'}
language="en"
current={post}
config={this.props.config}
/>
@ -126,7 +126,7 @@ class BlogPostLayout extends React.Component {
<BlogPost
post={post}
content={this.props.children}
language={'en'}
language="en"
config={this.props.config}
/>
{this.renderSocialButtons()}