diff options
author | crupest <crupest@outlook.com> | 2021-01-09 23:44:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-09 23:44:45 +0800 |
commit | cbf7990a2fed00db64a683d9691f96eb2623193e (patch) | |
tree | 11de2e4e896a9426a528450666f1608dbf30e339 /FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx | |
parent | 8b0f3472b3023fb62126be90575259aae23eda79 (diff) | |
download | timeline-cbf7990a2fed00db64a683d9691f96eb2623193e.tar.gz timeline-cbf7990a2fed00db64a683d9691f96eb2623193e.tar.bz2 timeline-cbf7990a2fed00db64a683d9691f96eb2623193e.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx index b2b349bc..e62f76fa 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx @@ -10,7 +10,11 @@ import SyncStatusBadge from "../timeline-common/SyncStatusBadge"; import CollapseButton from "../timeline-common/CollapseButton"; export interface TimelineCardTemplateProps - extends Omit<TimelineCardComponentProps<"">, "onManage" | "onMember"> { + extends Omit<TimelineCardComponentProps<"">, "operations"> { + operations: Pick< + TimelineCardComponentProps<"">["operations"], + "onHighlight" | "onBookmark" + >; infoArea: React.ReactElement; manageArea: | { type: "member"; onMember: () => void } @@ -33,13 +37,13 @@ function TimelineCardTemplate({ collapse, infoArea, manageArea, - onBookmark, - onHighlight, + operations, toggleCollapse, syncStatus, className, }: TimelineCardTemplateProps): React.ReactElement | null { const { t } = useTranslation(); + const { onBookmark, onHighlight } = operations; return ( <div className={clsx("cru-card p-2 clearfix", className)}> |