diff options
author | crupest <crupest@outlook.com> | 2021-02-13 21:23:30 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-13 21:23:30 +0800 |
commit | c8bd19aacf9059f740df4f6fa9890127c20c1f6d (patch) | |
tree | 01b3d74965415aff1ab1ef36fb9c92551c2166a4 /FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx | |
parent | b9703104b5b416dd3211adedb878d1916072c96d (diff) | |
download | timeline-c8bd19aacf9059f740df4f6fa9890127c20c1f6d.tar.gz timeline-c8bd19aacf9059f740df4f6fa9890127c20c1f6d.tar.bz2 timeline-c8bd19aacf9059f740df4f6fa9890127c20c1f6d.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx index 5acc1c21..63255619 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx @@ -18,10 +18,11 @@ export interface TimelinePostListViewProps { className?: string; style?: React.CSSProperties; posts: HttpTimelinePostInfo[]; + onReload: () => void; } const TimelinePostListView: React.FC<TimelinePostListViewProps> = (props) => { - const { className, style, posts } = props; + const { className, style, posts, onReload } = props; const groupedPosts = React.useMemo< { date: Date; posts: (HttpTimelinePostInfo & { index: number })[] }[] @@ -60,6 +61,7 @@ const TimelinePostListView: React.FC<TimelinePostListViewProps> = (props) => { key={post.id} post={post} current={posts.length - 1 === post.index} + onDeleted={onReload} /> ); })} |