diff options
author | crupest <crupest@outlook.com> | 2020-12-21 17:33:16 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-21 17:33:16 +0800 |
commit | 620e547b373368501970e4521dca5d8fed43fb92 (patch) | |
tree | 4523a25fc7c5d243882570ced277929764636194 /FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx | |
parent | 898f7bf50243cc6f25b9368b873c8bdcd230400e (diff) | |
download | timeline-620e547b373368501970e4521dca5d8fed43fb92.tar.gz timeline-620e547b373368501970e4521dca5d8fed43fb92.tar.bz2 timeline-620e547b373368501970e4521dca5d8fed43fb92.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx b/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx index 934ad090..8f967a34 100644 --- a/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx +++ b/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx @@ -1,6 +1,8 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { Dropdown, Button } from "react-bootstrap"; +import Svg from "react-inlinesvg"; +import bookmarkIcon from "bootstrap-icons/icons/bookmark.svg"; import { useAvatar } from "@/services/user"; import { timelineVisibilityTooltipTranslationMap } from "@/services/timeline"; @@ -18,6 +20,7 @@ const TimelineInfoCard: React.FC<TimelineInfoCardProps> = (props) => { timeline, collapse, onMember, + onBookmark, onManage, syncStatus, toggleCollapse, @@ -50,8 +53,15 @@ const TimelineInfoCard: React.FC<TimelineInfoCardProps> = (props) => { {t(timelineVisibilityTooltipTranslationMap[timeline.visibility])} </small> <div className="text-right mt-2"> + {onBookmark != null ? ( + <Svg + src={bookmarkIcon} + className="icon-button text-yellow mr-3" + onClick={onBookmark} + /> + ) : null} {onManage != null ? ( - <Dropdown> + <Dropdown className="d-inline-block"> <Dropdown.Toggle variant="outline-primary"> {t("timeline.manage")} </Dropdown.Toggle> |