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/user/UserInfoCard.tsx | |
| parent | 8b0f3472b3023fb62126be90575259aae23eda79 (diff) | |
| download | timeline-cbf7990a2fed00db64a683d9691f96eb2623193e.tar.gz timeline-cbf7990a2fed00db64a683d9691f96eb2623193e.tar.bz2 timeline-cbf7990a2fed00db64a683d9691f96eb2623193e.zip | |
...
Diffstat (limited to 'FrontEnd/src/app/views/user/UserInfoCard.tsx')
| -rw-r--r-- | FrontEnd/src/app/views/user/UserInfoCard.tsx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/FrontEnd/src/app/views/user/UserInfoCard.tsx b/FrontEnd/src/app/views/user/UserInfoCard.tsx index f31a939f..01d2c096 100644 --- a/FrontEnd/src/app/views/user/UserInfoCard.tsx +++ b/FrontEnd/src/app/views/user/UserInfoCard.tsx @@ -13,8 +13,8 @@ export type PersonalTimelineManageItem = "avatar" | "nickname";  export type UserInfoCardProps = TimelineCardComponentProps<PersonalTimelineManageItem>;  const UserInfoCard: React.FC<UserInfoCardProps> = (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 UserInfoCard: React.FC<UserInfoCardProps> = (props) => {            };          }        })()} -      {...otherProps} +      {...props}      />    );  }; | 
