aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-13 21:23:30 +0800
committercrupest <crupest@outlook.com>2021-02-13 21:23:30 +0800
commitfe5128137f530daf8ca315cb89811121c6c2c9da (patch)
tree34cbdb7895e18d34779b2209a1e9aae0fde20cf2 /FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
parentaeed3cb80d8c0a62d0ccc565733c4a213759c5bd (diff)
downloadtimeline-fe5128137f530daf8ca315cb89811121c6c2c9da.tar.gz
timeline-fe5128137f530daf8ca315cb89811121c6c2c9da.tar.bz2
timeline-fe5128137f530daf8ca315cb89811121c6c2c9da.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx4
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}
/>
);
})}