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 | |
parent | 9d1d88bacf121699ddf085b799ce191c0d7d3a50 (diff) | |
download | timeline-5cb8f773183a46b7be6f0af14110a499432abba7.tar.gz timeline-5cb8f773183a46b7be6f0af14110a499432abba7.tar.bz2 timeline-5cb8f773183a46b7be6f0af14110a499432abba7.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline')
-rw-r--r-- | FrontEnd/src/app/views/timeline/TimelineInfoCard.tsx | 6 |
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} /> ); }; |