From 49bf16e7d451388d894f93a994f3bf18571f9594 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 7 Apr 2019 22:19:02 -0700 Subject: Adding user details / overview page. - Fixes #19 --- ui/src/components/post-listings.tsx | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'ui/src/components/post-listings.tsx') diff --git a/ui/src/components/post-listings.tsx b/ui/src/components/post-listings.tsx index 98fe8f21..bb36cabc 100644 --- a/ui/src/components/post-listings.tsx +++ b/ui/src/components/post-listings.tsx @@ -2,12 +2,10 @@ import { Component, linkEvent } from 'inferno'; import { Link } from 'inferno-router'; import { Subscription } from "rxjs"; import { retryWhen, delay, take } from 'rxjs/operators'; -import { UserOperation, Community as CommunityI, GetCommunityResponse, CommunityResponse, Post, GetPostsForm, ListingSortType, ListingType, GetPostsResponse, CreatePostLikeForm, CreatePostLikeResponse, CommunityUser} from '../interfaces'; +import { UserOperation, Community as CommunityI, Post, GetPostsForm, SortType, ListingType, GetPostsResponse, CreatePostLikeResponse, CommunityUser} from '../interfaces'; import { WebSocketService, UserService } from '../services'; -import { MomentTime } from './moment-time'; import { PostListing } from './post-listing'; -import { Sidebar } from './sidebar'; -import { msgOp, mdToHtml } from '../utils'; +import { msgOp } from '../utils'; interface PostListingsProps { @@ -18,7 +16,7 @@ interface PostListingsState { community: CommunityI; moderators: Array; posts: Array; - sortType: ListingSortType; + sortType: SortType; type_: ListingType; } @@ -41,7 +39,7 @@ export class PostListings extends Component {!this.props.communityId && UserService.Instance.loggedIn && @@ -117,26 +115,26 @@ export class PostListings extends Component