From 7ec5cf66cef88bc7d3b8720070f40cceb452aec4 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 10 Jun 2020 15:21:32 +0800 Subject: feat(front): Fix #75 . --- Timeline/ClientApp/src/timeline/Timeline.tsx | 68 ++++++++++++++-------------- 1 file changed, 35 insertions(+), 33 deletions(-) (limited to 'Timeline/ClientApp/src/timeline/Timeline.tsx') diff --git a/Timeline/ClientApp/src/timeline/Timeline.tsx b/Timeline/ClientApp/src/timeline/Timeline.tsx index f6ff8949..1ec3795f 100644 --- a/Timeline/ClientApp/src/timeline/Timeline.tsx +++ b/Timeline/ClientApp/src/timeline/Timeline.tsx @@ -56,41 +56,43 @@ const Timeline: React.FC = (props) => { }, [posts, onDelete]); return ( -
- - {(() => { - const length = posts.length; - return posts.map((post, i) => { - const av: number | undefined = - user != null && user.username === post.author.username - ? avatarVersion - : undefined; + +
+ {(() => { + const length = posts.length; + return posts.map((post, i) => { + const av: number | undefined = + user != null && user.username === post.author.username + ? avatarVersion + : undefined; - const toggleMore = onToggleDelete[i]; + const toggleMore = onToggleDelete[i]; - return ( - - ); - }); - })()} - -
+ return ( + + ); + }); + })()} +
); }; -- cgit v1.2.3