aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-23 22:35:11 +0800
committercrupest <crupest@outlook.com>2020-12-23 22:35:11 +0800
commit5e8c5c4e145e1eef799b1b745438de4c34fd3471 (patch)
tree269b40d2030461fd6d997af343d6c15484bbed45 /FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
parentbe318ee2dbdc865c51dd7fc675cfb35c73e5b70b (diff)
downloadtimeline-5e8c5c4e145e1eef799b1b745438de4c34fd3471.tar.gz
timeline-5e8c5c4e145e1eef799b1b745438de4c34fd3471.tar.bz2
timeline-5e8c5c4e145e1eef799b1b745438de4c34fd3471.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
index a47b3d76..ffec1a90 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
@@ -3,6 +3,7 @@ import clsx from "clsx";
import { useTranslation } from "react-i18next";
import { Dropdown, Button } from "react-bootstrap";
import Svg from "react-inlinesvg";
+import starIcon from "bootstrap-icons/icons/star.svg";
import bookmarkIcon from "bootstrap-icons/icons/bookmark.svg";
import { timelineVisibilityTooltipTranslationMap } from "@/services/timeline";
@@ -36,6 +37,7 @@ function TimelineCardTemplate({
infoArea,
manageArea,
onBookmark,
+ onHighlight,
toggleCollapse,
syncStatus,
className,
@@ -55,6 +57,13 @@ function TimelineCardTemplate({
{t(timelineVisibilityTooltipTranslationMap[timeline.visibility])}
</small>
<div className="text-right mt-2">
+ {onHighlight != null ? (
+ <Svg
+ src={starIcon}
+ className="icon-button text-yellow mr-3"
+ onClick={onHighlight}
+ />
+ ) : null}
{onBookmark != null ? (
<Svg
src={bookmarkIcon}