Make design responsive

This commit is contained in:
Chi Vinh Le
2018-07-12 18:38:49 -03:00
parent ec0adf8492
commit c60c4b3ef8
19 changed files with 190 additions and 46 deletions
@@ -22,7 +22,10 @@ export class ReplyListContainer extends React.Component<InnerProps> {
};
public render() {
if (this.props.comment.replies === null) {
if (
this.props.comment.replies === null ||
this.props.comment.replies.edges.length === 0
) {
return null;
}
const comments = this.props.comment.replies.edges.map(edge => edge.node);