diff options
author | crupest <crupest@outlook.com> | 2020-06-10 00:43:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 00:43:33 +0800 |
commit | 0fe34194d091464f5b1f88a2a51c72875bb092d3 (patch) | |
tree | 0651086163c3c2a3ea3d68954dc8973cab63865e /Timeline/ClientApp/src/timeline/Timeline.tsx | |
parent | d4cf8359a953a5644d5878610e43be3075fa252c (diff) | |
parent | 0ec545e1bfee5bd6ebd7db8176bf44ba5b67bfbe (diff) | |
download | timeline-0fe34194d091464f5b1f88a2a51c72875bb092d3.tar.gz timeline-0fe34194d091464f5b1f88a2a51c72875bb092d3.tar.bz2 timeline-0fe34194d091464f5b1f88a2a51c72875bb092d3.zip |
Merge pull request #91 from crupest/scroll
Fix #90 .
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..f6ff8949 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;
+ onResize?: () => void;
}
const Timeline: React.FC<TimelineProps> = (props) => {
const user = useUser();
const avatarVersion = useAvatarVersion();
- const { posts, onDelete } = props;
+ const { posts, onDelete, onResize } = props;
const [indexShowDeleteButton, setIndexShowDeleteButton] = React.useState<
number
@@ -83,6 +84,7 @@ const Timeline: React.FC<TimelineProps> = (props) => { }
onClick={onItemClick}
avatarVersion={av}
+ onResize={onResize}
/>
);
});
|