From 17cdbf8d02660a992cde9bd2cdb7f8b89ac1736d Mon Sep 17 00:00:00 2001 From: JORGE Date: Tue, 31 Dec 2024 10:42:11 -0400 Subject: [PATCH] [TM-1592] remove loader --- src/pages/site/[uuid]/tabs/Overview.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/site/[uuid]/tabs/Overview.tsx b/src/pages/site/[uuid]/tabs/Overview.tsx index 2a436bcce..a265e61bd 100644 --- a/src/pages/site/[uuid]/tabs/Overview.tsx +++ b/src/pages/site/[uuid]/tabs/Overview.tsx @@ -96,7 +96,7 @@ const SiteOverviewTab = ({ site, refetch: refetchEntity }: SiteOverviewTabProps) const [files, setFiles] = useState([]); const [saveFlags, setSaveFlags] = useState(false); const { openNotification } = useNotificationContext(); - const { showLoader, hideLoader } = useLoading(); + const { hideLoader } = useLoading(); const [polygonLoaded, setPolygonLoaded] = useState(false); const [submitPolygonLoaded, setSubmitPolygonLoaded] = useState(false); @@ -138,7 +138,6 @@ const SiteOverviewTab = ({ site, refetch: refetchEntity }: SiteOverviewTabProps) formData.append("polygon_loaded", polygonLoaded.toString()); formData.append("submit_polygon_loaded", submitPolygonLoaded.toString()); let newRequest: any = formData; - showLoader(); switch (fileType) { case "geojson": uploadPromises.push(fetchPostV2TerrafundUploadGeojson({ body: newRequest })); @@ -202,7 +201,6 @@ const SiteOverviewTab = ({ site, refetch: refetchEntity }: SiteOverviewTabProps) variant: "primary", onClick: () => { setSaveFlags(true); - showLoader(); } }} acceptedTypes={FileType.AcceptedShapefiles.split(",") as FileType[]}