From 7aa8c9ec5e803362db00490c9f323be0e82e204a Mon Sep 17 00:00:00 2001 From: Wilson Neto Date: Thu, 16 Jan 2025 18:43:30 -0300 Subject: [PATCH] wip --- dashboard/src/pages/useTreeDetailsLazyLoadQuery.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dashboard/src/pages/useTreeDetailsLazyLoadQuery.ts b/dashboard/src/pages/useTreeDetailsLazyLoadQuery.ts index aaecfc6f..02c61cae 100644 --- a/dashboard/src/pages/useTreeDetailsLazyLoadQuery.ts +++ b/dashboard/src/pages/useTreeDetailsLazyLoadQuery.ts @@ -24,9 +24,7 @@ const canWeFetchAll = ( return statusTable[currentPageTab] ?? false; }; -export const useTreeDetailsLazyLoadQuery = ( - useTreeDetailsArgs: UseTreeDetailsWithoutVariant, -): { +type TreeDetaisLazyLoad = { summaryData?: TreeDetailsSummary; summaryIsLoading: boolean; buildsData?: TreeDetailsBuilds; @@ -35,7 +33,11 @@ export const useTreeDetailsLazyLoadQuery = ( bootsIsLoading: boolean; testsData?: TreeDetailsTests; testIsLoading: boolean; -} => { +} + +export const useTreeDetailsLazyLoadQuery = ( + useTreeDetailsArgs: UseTreeDetailsWithoutVariant, +): TreeDetailsLazyLoad => { const [fetchAll, setFetchAll] = useState(false); const { data: summaryData, isLoading: summaryIsLoading } = useTreeDetails({