From ac943f8951fe7da86aaa9f41ee879ab670786c86 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 2 Feb 2020 13:50:44 -0500 Subject: Finishing up interpolation rework. --- ui/src/components/post.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'ui/src/components/post.tsx') diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index 1d84efac..9bde8585 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -11,7 +11,6 @@ import { CommentForm as CommentFormI, CommentResponse, CommentSortType, - CreatePostLikeResponse, CommunityUser, CommunityResponse, CommentNode as CommentNodeI, @@ -38,7 +37,6 @@ import { CommentForm } from './comment-form'; import { CommentNodes } from './comment-nodes'; import autosize from 'autosize'; import { i18n } from '../i18next'; -import { T } from 'inferno-i18next'; interface PostState { post: PostI; @@ -155,11 +153,11 @@ export class Post extends Component { return (
{this.state.loading ? ( -

+

-

+
) : (
@@ -173,7 +171,7 @@ export class Post extends Component { {this.state.crossPosts.length > 0 && ( <>
- { i18n.t('cross_posts') } + {i18n.t('cross_posts')}
@@ -243,9 +241,7 @@ export class Post extends Component { return (
-
- { i18n.t('recent_comments') } -
+
{i18n.t('recent_comments')}
{this.state.comments.map(comment => ( { } this.setState(this.state); } else if (res.op == UserOperation.CreatePostLike) { - let data = res.data as CreatePostLikeResponse; + let data = res.data as PostResponse; this.state.post.my_vote = data.post.my_vote; this.state.post.score = data.post.score; this.state.post.upvotes = data.post.upvotes; -- cgit v1.2.3