From 95b74ad74c56754d9ebc456beb2c66ddef055705 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 8 Sep 2020 19:48:17 -0500 Subject: [PATCH] Add post, inbox, and user routes. --- src/shared/components/comment-node.tsx | 6 +- src/shared/components/inbox.tsx | 188 +++++++------ src/shared/components/post-form.tsx | 1 + src/shared/components/post-listing.tsx | 7 +- src/shared/components/post.tsx | 235 +++++++++-------- src/shared/components/user-details.tsx | 191 +++----------- src/shared/components/user.tsx | 351 ++++++++++++++----------- src/shared/routes.ts | 26 +- src/shared/services/UserService.ts | 4 +- src/shared/utils.ts | 12 + 10 files changed, 509 insertions(+), 512 deletions(-) diff --git a/src/shared/components/comment-node.tsx b/src/shared/components/comment-node.tsx index b9edcae4..19c1bdc3 100644 --- a/src/shared/components/comment-node.tsx +++ b/src/shared/components/comment-node.tsx @@ -202,7 +202,7 @@ export class CommentNode extends Component { }} /> - + {node.comment.post_name} @@ -343,7 +343,7 @@ export class CommentNode extends Component { {!this.myComment && ( )} - {this.state.comments.length + this.state.posts.length > 0 && ( + {this.props.userRes.comments.length + this.props.userRes.posts.length > + 0 && (