From f2370781ac566e3adf3b5f887bd49b8613bd874b Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 4 Apr 2021 15:59:23 +0800
Subject: ...

---
 FrontEnd/src/app/views/timeline-common/TimelineTop.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelineTop.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelineTop.tsx b/FrontEnd/src/app/views/timeline-common/TimelineTop.tsx
index 39cfa426..6ee4e3e6 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelineTop.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelineTop.tsx
@@ -1,16 +1,20 @@
 import React from "react";
 
-import TimelineLine from "./TimelineLine";
+import TimelineLine, { TimelineLineProps } from "./TimelineLine";
 
 export interface TimelineTopProps {
   height?: number | string;
+  lineProps?: TimelineLineProps;
   children?: React.ReactElement;
 }
 
-const TimelineTop: React.FC<TimelineTopProps> = ({ height, children }) => {
+const TimelineTop: React.FC<TimelineTopProps> = (props) => {
+  const { height, children } = props;
+  const lineProps = props.lineProps ?? { center: "none" };
+
   return (
     <div style={{ height: height }} className="timeline-top">
-      <TimelineLine center={null} />
+      <TimelineLine {...lineProps} />
       {children}
     </div>
   );
-- 
cgit v1.2.3

