diff options
author | crupest <crupest@outlook.com> | 2021-01-11 21:43:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-11 21:43:11 +0800 |
commit | 9b95bd40ab1637cdea343b078e9e391ba4f5415d (patch) | |
tree | 55e736c000e5e841d99325574a118640afa57a3c /FrontEnd/src/app/services/timeline.ts | |
parent | e4c96126ef3cb70fce3dec7244f0eb368f64db37 (diff) | |
download | timeline-9b95bd40ab1637cdea343b078e9e391ba4f5415d.tar.gz timeline-9b95bd40ab1637cdea343b078e9e391ba4f5415d.tar.bz2 timeline-9b95bd40ab1637cdea343b078e9e391ba4f5415d.zip |
...
Diffstat (limited to 'FrontEnd/src/app/services/timeline.ts')
-rw-r--r-- | FrontEnd/src/app/services/timeline.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/FrontEnd/src/app/services/timeline.ts b/FrontEnd/src/app/services/timeline.ts index ed24c005..46feb4d9 100644 --- a/FrontEnd/src/app/services/timeline.ts +++ b/FrontEnd/src/app/services/timeline.ts @@ -451,10 +451,7 @@ export function validateTimelineName(name: string): boolean { export function useTimeline( timelineName: string -): [ - DataAndStatus<TimelineInfo | "notexist">, - React.Dispatch<React.SetStateAction<DataAndStatus<TimelineInfo | "notexist">>> -] { +): DataAndStatus<TimelineInfo | "notexist"> { const [state, setState] = React.useState< DataAndStatus<TimelineInfo | "notexist"> >({ @@ -472,7 +469,7 @@ export function useTimeline( subscription.unsubscribe(); }; }, [timelineName]); - return [state, setState]; + return state; } export function usePosts( |