diff options
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/Timeline.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/Timeline.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/Timeline.tsx b/FrontEnd/src/app/views/timeline-common/Timeline.tsx index 7b56d129..589382b0 100644 --- a/FrontEnd/src/app/views/timeline-common/Timeline.tsx +++ b/FrontEnd/src/app/views/timeline-common/Timeline.tsx @@ -26,10 +26,9 @@ export interface TimelineProps { const Timeline: React.FC<TimelineProps> = (props) => { const { timelineName, className, style, reloadKey } = props; - const [state, setState] = - React.useState< - "loading" | "loaded" | "offline" | "notexist" | "forbid" | "error" - >("loading"); + const [state, setState] = React.useState< + "loading" | "loaded" | "offline" | "notexist" | "forbid" | "error" + >("loading"); const [posts, setPosts] = React.useState<HttpTimelinePostInfo[]>([]); React.useEffect(() => { @@ -43,8 +42,9 @@ const Timeline: React.FC<TimelineProps> = (props) => { onReload.current = props.onReload; }, [props.onReload]); - const onConnectionStateChanged = - React.useRef<((state: HubConnectionState) => void) | null>(null); + const onConnectionStateChanged = React.useRef< + ((state: HubConnectionState) => void) | null + >(null); React.useEffect(() => { onConnectionStateChanged.current = props.onConnectionStateChanged ?? null; |