aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-13 18:29:38 +0800
committercrupest <crupest@outlook.com>2021-04-13 18:29:38 +0800
commita562777b2a296af27cf3b4cbad7af9b99ee9d353 (patch)
tree4594661c9612ada28dd2d7a81c5d785c39eff4f1 /FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
parent00b0b23d8fce12e5ff1e1f9f0e0b2b26950ce096 (diff)
downloadtimeline-a562777b2a296af27cf3b4cbad7af9b99ee9d353.tar.gz
timeline-a562777b2a296af27cf3b4cbad7af9b99ee9d353.tar.bz2
timeline-a562777b2a296af27cf3b4cbad7af9b99ee9d353.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx9
1 files changed, 3 insertions, 6 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
index 4cffe593..bc7b72ad 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostListView.tsx
@@ -17,7 +17,7 @@ function dateEqual(left: Date, right: Date): boolean {
export interface TimelinePostListViewProps {
className?: string;
style?: React.CSSProperties;
- posts: (HttpTimelinePostInfo & { enterDelay?: number })[];
+ posts: HttpTimelinePostInfo[];
onReload: () => void;
}
@@ -27,12 +27,12 @@ const TimelinePostListView: React.FC<TimelinePostListViewProps> = (props) => {
const groupedPosts = React.useMemo<
{
date: Date;
- posts: (HttpTimelinePostInfo & { index: number; enterDelay?: number })[];
+ posts: (HttpTimelinePostInfo & { index: number })[];
}[]
>(() => {
const result: {
date: Date;
- posts: (HttpTimelinePostInfo & { index: number; enterDelay?: number })[];
+ posts: (HttpTimelinePostInfo & { index: number })[];
}[] = [];
let index = 0;
for (const post of posts) {
@@ -65,9 +65,6 @@ const TimelinePostListView: React.FC<TimelinePostListViewProps> = (props) => {
post={post}
current={posts.length - 1 === post.index}
onDeleted={onReload}
- cardStyle={{
- animationDelay: `${post.enterDelay ?? 0}s`,
- }}
/>
);
})}