aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-11 21:58:32 +0800
committerGitHub <noreply@github.com>2021-01-11 21:58:32 +0800
commit5d3a3111bbc349d5d5ff0a4ed92f97b14a9d65fe (patch)
treed635081fb6eaa0222270bfb4ac29906fb767a9bd /FrontEnd/src/app/views/timeline
parent777efa6e0405f4e871de4da21b939e30ed07f754 (diff)
parent26f02d90c2571251b32c3b03b970dd290e3892e6 (diff)
downloadtimeline-5d3a3111bbc349d5d5ff0a4ed92f97b14a9d65fe.tar.gz
timeline-5d3a3111bbc349d5d5ff0a4ed92f97b14a9d65fe.tar.bz2
timeline-5d3a3111bbc349d5d5ff0a4ed92f97b14a9d65fe.zip
Merge pull request #206 from crupest/front-dev
Front development.
Diffstat (limited to 'FrontEnd/src/app/views/timeline')
-rw-r--r--FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx b/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx
index f4dbb67d..920f504d 100644
--- a/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx
+++ b/FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx
@@ -13,8 +13,8 @@ export type OrdinaryTimelineManageItem = "delete";
export type TimelineInfoCardProps = TimelineCardComponentProps<OrdinaryTimelineManageItem>;
const TimelineInfoCard: React.FC<TimelineInfoCardProps> = (props) => {
- const { onMember, onManage, ...otherProps } = props;
- const { timeline } = props;
+ const { timeline, operations } = props;
+ const { onManage, onMember } = operations;
const avatar = useAvatar(timeline?.owner?.username);
@@ -66,7 +66,7 @@ const TimelineInfoCard: React.FC<TimelineInfoCardProps> = (props) => {
};
}
})()}
- {...otherProps}
+ {...props}
/>
);
};