From 457f4b2141d7380c0521fb2b6132f0bde0cf7315 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 3 Nov 2020 22:50:00 +0800 Subject: feat: Add timeline title to home page. --- FrontEnd/src/app/views/home/TimelineBoard.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'FrontEnd/src/app/views/home/TimelineBoard.tsx') diff --git a/FrontEnd/src/app/views/home/TimelineBoard.tsx b/FrontEnd/src/app/views/home/TimelineBoard.tsx index a3d176e1..c2a7e5fe 100644 --- a/FrontEnd/src/app/views/home/TimelineBoard.tsx +++ b/FrontEnd/src/app/views/home/TimelineBoard.tsx @@ -48,20 +48,21 @@ const TimelineBoard: React.FC = (props) => { ); } else { return timelines.map((timeline) => { - const { name } = timeline; + const { name, title } = timeline; const isPersonal = name.startsWith("@"); const url = isPersonal ? `/users/${timeline.owner.username}` : `/timelines/${name}`; return ( -
+ {isPersonal ? ( ) : ( )} - {name} -
+ {title} + {name} + ); }); } -- cgit v1.2.3