aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/home/TimelineBoard.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-03 22:50:00 +0800
committercrupest <crupest@outlook.com>2020-11-03 22:50:00 +0800
commit2841419e66a992ad5862f1d5c318060f73828ef9 (patch)
treeb5bfaef810f27aa97905d0f590743bb015b2a55c /FrontEnd/src/app/views/home/TimelineBoard.tsx
parentaf8c7de13bcaa0bf1b413966c914974eca079b4d (diff)
downloadtimeline-2841419e66a992ad5862f1d5c318060f73828ef9.tar.gz
timeline-2841419e66a992ad5862f1d5c318060f73828ef9.tar.bz2
timeline-2841419e66a992ad5862f1d5c318060f73828ef9.zip
feat: Add timeline title to home page.
Diffstat (limited to 'FrontEnd/src/app/views/home/TimelineBoard.tsx')
-rw-r--r--FrontEnd/src/app/views/home/TimelineBoard.tsx9
1 files changed, 5 insertions, 4 deletions
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<TimelineBoardProps> = (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 (
- <div key={name} className="timeline-board-item">
+ <Link key={name} to={url} className="timeline-board-item">
{isPersonal ? (
<UserTimelineLogo className="icon" />
) : (
<TimelineLogo className="icon" />
)}
- <Link to={url}>{name}</Link>
- </div>
+ {title}
+ <small className="ml-2 text-secondary">{name}</small>
+ </Link>
);
});
}