diff options
author | crupest <crupest@outlook.com> | 2021-06-08 21:19:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 21:19:48 +0800 |
commit | da26373c7fc13cded47428b27638b349b0432437 (patch) | |
tree | 594a1720aa6519c96d8e81a9d41ea328f5241887 /FrontEnd/src/app/views/timeline-common/Timeline.tsx | |
parent | ee92c2b9fa4fc7bcb7234f75b7fbe00e1484a1d4 (diff) | |
parent | be3300b030f2f4e50655c5685a255582ba0b530d (diff) | |
download | timeline-da26373c7fc13cded47428b27638b349b0432437.tar.gz timeline-da26373c7fc13cded47428b27638b349b0432437.tar.bz2 timeline-da26373c7fc13cded47428b27638b349b0432437.zip |
Merge pull request #597 from crupest/dependabot/npm_and_yarn/FrontEnd/prettier-2.3.1
build(deps-dev): Bump prettier from 2.3.0 to 2.3.1 in /FrontEnd
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; |