aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-04 14:43:26 +0800
committercrupest <crupest@outlook.com>2021-04-04 14:43:26 +0800
commit2c4967facc546e718f5a2f4c9324722324b1f4a5 (patch)
tree32219003468a90f80bc9cf97b60ea9ae9f7c903d /FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
parent4899fac577f92d3c3feade4869621ef6979460c1 (diff)
downloadtimeline-2c4967facc546e718f5a2f4c9324722324b1f4a5.tar.gz
timeline-2c4967facc546e718f5a2f4c9324722324b1f4a5.tar.bz2
timeline-2c4967facc546e718f5a2f4c9324722324b1f4a5.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx11
1 files changed, 1 insertions, 10 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
index b91357dd..e0534695 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
@@ -1,6 +1,7 @@
import React from "react";
import { HttpTimelinePostInfo } from "@/http/timeline";
+
import TimelinePostListView from "./TimelinePostListView";
export interface TimelinePagedPostListViewProps {
@@ -38,16 +39,6 @@ const TimelinePagedPostListView: React.FC<TimelinePagedPostListViewProps> = (
}
}, [lastViewCount, posts]);
- React.useEffect(() => {
- if (lastViewCount !== 10) {
- document
- .getElementById(
- `timeline-post-${posts[posts.length - (lastViewCount - 10)].id}`
- )
- ?.scrollIntoView(true);
- }
- }, [lastViewCount, posts]);
-
return (
<TimelinePostListView
className={className}