Improvment in tslint standard (#16)

This commit is contained in:
Qolzam
2017-10-10 16:39:02 +07:00
parent 181d2b8abd
commit 1937742f04
160 changed files with 984 additions and 1019 deletions

View File

@@ -1,6 +1,6 @@
// - Import react components
import React, { Component } from 'react'
import { connect } from 'react-redux';
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { List, ListItem } from 'material-ui/List'
@@ -57,17 +57,17 @@ export class CommentList extends Component {
* @return {DOM} list of comments' DOM
*/
commentList = () => {
var comments = this.props.comments
let comments = this.props.comments
if (comments) {
var parsedComments = [];
let parsedComments = []
Object.keys(comments).forEach((commentId) => {
parsedComments.push({
id: commentId,
...comments[commentId]
});
});
})
})
let sortedComments = PostAPI.sortObjectsDate(parsedComments)
return sortedComments.map((comment, index, array) => {