aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/Timeline.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-14 17:35:34 +0800
committercrupest <crupest@outlook.com>2021-02-14 17:35:34 +0800
commit80f5bf676ac5c8d466284ffa1aa6de0208c94164 (patch)
tree097e0f7b7e63e36b2f846ed3168feb6532315682 /FrontEnd/src/app/views/timeline-common/Timeline.tsx
parent3f6dbd2bd0fc8c9439733c88f6c169ed28c2def7 (diff)
downloadtimeline-80f5bf676ac5c8d466284ffa1aa6de0208c94164.tar.gz
timeline-80f5bf676ac5c8d466284ffa1aa6de0208c94164.tar.bz2
timeline-80f5bf676ac5c8d466284ffa1aa6de0208c94164.zip
feat: Timeline top is back.
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/Timeline.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/Timeline.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/Timeline.tsx b/FrontEnd/src/app/views/timeline-common/Timeline.tsx
index 07ca2924..d40f8e94 100644
--- a/FrontEnd/src/app/views/timeline-common/Timeline.tsx
+++ b/FrontEnd/src/app/views/timeline-common/Timeline.tsx
@@ -12,6 +12,7 @@ import TimelinePostListView from "./TimelinePostListView";
export interface TimelineProps {
className?: string;
style?: React.CSSProperties;
+ top?: string | number;
timelineName: string;
reloadKey: number;
onReload: () => void;
@@ -24,6 +25,7 @@ const Timeline: React.FC<TimelineProps> = (props) => {
timelineName,
className,
style,
+ top,
reloadKey,
onReload,
additionalPosts,
@@ -110,6 +112,7 @@ const Timeline: React.FC<TimelineProps> = (props) => {
return (
<TimelinePostListView
posts={[...posts, ...(additionalPosts ?? [])]}
+ top={top}
onReload={onReload}
/>
);