From da9041846e4903a330dd8e4f8ec92570775ff313 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 4 Apr 2021 23:50:25 +0800 Subject: ... --- .../src/app/views/timeline-common/Timeline.tsx | 38 +++++++++------------- 1 file changed, 15 insertions(+), 23 deletions(-) (limited to 'FrontEnd/src/app/views/timeline-common/Timeline.tsx') diff --git a/FrontEnd/src/app/views/timeline-common/Timeline.tsx b/FrontEnd/src/app/views/timeline-common/Timeline.tsx index f7f7dcfc..60fbc45c 100644 --- a/FrontEnd/src/app/views/timeline-common/Timeline.tsx +++ b/FrontEnd/src/app/views/timeline-common/Timeline.tsx @@ -13,7 +13,6 @@ import TimelineTop from "./TimelineTop"; export interface TimelineProps { className?: string; style?: React.CSSProperties; - top?: string | number; timelineName: string; reloadKey: number; onReload: () => void; @@ -21,15 +20,7 @@ export interface TimelineProps { } const Timeline: React.FC = (props) => { - const { - timelineName, - className, - style, - top, - reloadKey, - onReload, - onLoad, - } = props; + const { timelineName, className, style, reloadKey, onReload, onLoad } = props; const [state, setState] = React.useState< "loading" | "loaded" | "offline" | "notexist" | "forbid" | "error" @@ -81,14 +72,16 @@ const Timeline: React.FC = (props) => { switch (state) { case "loading": return ( - + <> + + ); case "offline": return ( @@ -116,11 +109,10 @@ const Timeline: React.FC = (props) => { ); default: return ( - + <> + + + ); } }; -- cgit v1.2.3