ESLintify Part 3 (#846)

* ESLintify Part 3

* ESLintify Part 3

* ESLintify Part 3
This commit is contained in:
Yangshun Tay 2018-07-11 03:21:31 -07:00 committed by Endilie Yacop Sucipto
parent 5ac2cee658
commit a7a214fb3a
54 changed files with 435 additions and 497 deletions

View file

@ -23,14 +23,10 @@ class BlogPost extends React.Component {
<div className="read-more">
<a
className="button"
href={
this.props.config.baseUrl +
'blog/' +
utils.getPath(
this.props.post.path,
this.props.config.cleanUrl
)
}>
href={`${this.props.config.baseUrl}blog/${utils.getPath(
this.props.post.path,
this.props.config.cleanUrl
)}`}>
Read More
</a>
</div>
@ -43,9 +39,9 @@ class BlogPost extends React.Component {
renderAuthorPhoto() {
const post = this.props.post;
const className =
'authorPhoto' +
(post.author && post.authorTitle ? ' authorPhotoBig' : '');
const className = `authorPhoto${
post.author && post.authorTitle ? ' authorPhotoBig' : ''
}`;
if (post.authorFBID || post.authorImageURL) {
const authorImageURL = post.authorFBID
? `https://graph.facebook.com/${
@ -68,11 +64,10 @@ class BlogPost extends React.Component {
return (
<h1 className="postHeaderTitle">
<a
href={
this.props.config.baseUrl +
'blog/' +
utils.getPath(post.path, this.props.config.cleanUrl)
}>
href={`${this.props.config.baseUrl}blog/${utils.getPath(
post.path,
this.props.config.cleanUrl
)}`}>
{post.title}
</a>
</h1>