aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-09 23:44:45 +0800
committercrupest <crupest@outlook.com>2021-01-09 23:44:45 +0800
commit5cb8f773183a46b7be6f0af14110a499432abba7 (patch)
treef0bc8ec02d87acc401e6cc81c70637b3194fef50 /FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx
parent9d1d88bacf121699ddf085b799ce191c0d7d3a50 (diff)
downloadtimeline-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.tsx10
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)}>