diff options
author | crupest <crupest@outlook.com> | 2020-06-09 17:54:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-09 17:54:41 +0800 |
commit | c40fdd0eeb04622999c4d51f3ff5d32c598095c6 (patch) | |
tree | b185e5709dc61402039967a35b25163ca336f4c8 /Timeline/ClientApp/src/timeline/Timeline.tsx | |
parent | 4d2bec0331d551d8d47c929720fcb559253c24fd (diff) | |
download | timeline-c40fdd0eeb04622999c4d51f3ff5d32c598095c6.tar.gz timeline-c40fdd0eeb04622999c4d51f3ff5d32c598095c6.tar.bz2 timeline-c40fdd0eeb04622999c4d51f3ff5d32c598095c6.zip |
fix(front): Attempt to fix scroll problem in timeline page.
Diffstat (limited to 'Timeline/ClientApp/src/timeline/Timeline.tsx')
-rw-r--r-- | Timeline/ClientApp/src/timeline/Timeline.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/timeline/Timeline.tsx b/Timeline/ClientApp/src/timeline/Timeline.tsx index acc3ba0a..a2c14815 100644 --- a/Timeline/ClientApp/src/timeline/Timeline.tsx +++ b/Timeline/ClientApp/src/timeline/Timeline.tsx @@ -18,13 +18,14 @@ export interface TimelineProps { className?: string;
posts: TimelinePostInfoEx[];
onDelete: TimelineDeleteCallback;
+ onLoad?: () => void;
}
const Timeline: React.FC<TimelineProps> = (props) => {
const user = useUser();
const avatarVersion = useAvatarVersion();
- const { posts, onDelete } = props;
+ const { posts, onDelete, onLoad } = props;
const [indexShowDeleteButton, setIndexShowDeleteButton] = React.useState<
number
@@ -83,6 +84,7 @@ const Timeline: React.FC<TimelineProps> = (props) => { }
onClick={onItemClick}
avatarVersion={av}
+ onLoad={onLoad}
/>
);
});
|