diff options
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common')
3 files changed, 12 insertions, 12 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; diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx index d3bbc0bb..658ce502 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx @@ -36,10 +36,9 @@ const TimelinePageTemplate: React.FC<TimelinePageTemplateProps> = (props) => { const { t } = useTranslation(); - const [state, setState] = - React.useState<"loading" | "done" | "offline" | "notexist" | "error">( - "loading" - ); + const [state, setState] = React.useState< + "loading" | "done" | "offline" | "notexist" | "error" + >("loading"); const [timeline, setTimeline] = React.useState<HttpTimelineInfo | null>(null); const [connectionStatus, setConnectionStatus] = diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx index a008d8e5..f7b81478 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx @@ -31,8 +31,9 @@ const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => { const [operationMaskVisible, setOperationMaskVisible] = React.useState<boolean>(false); - const [dialog, setDialog] = - React.useState<"delete" | "changeproperty" | null>(null); + const [dialog, setDialog] = React.useState< + "delete" | "changeproperty" | null + >(null); const cardRef = React.useRef<HTMLDivElement>(null); React.useEffect(() => { |