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 | 5cb8f773183a46b7be6f0af14110a499432abba7 (patch) | |
tree | f0bc8ec02d87acc401e6cc81c70637b3194fef50 /FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx | |
parent | 9d1d88bacf121699ddf085b799ce191c0d7d3a50 (diff) | |
download | timeline-5cb8f773183a46b7be6f0af14110a499432abba7.tar.gz timeline-5cb8f773183a46b7be6f0af14110a499432abba7.tar.bz2 timeline-5cb8f773183a46b7be6f0af14110a499432abba7.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)}> |