Skip to content

Commit

Permalink
[TM-1592] remove loader
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Dec 31, 2024
1 parent 32d0427 commit 17cdbf8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/site/[uuid]/tabs/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const SiteOverviewTab = ({ site, refetch: refetchEntity }: SiteOverviewTabProps)
const [files, setFiles] = useState<UploadedFile[]>([]);
const [saveFlags, setSaveFlags] = useState<boolean>(false);
const { openNotification } = useNotificationContext();
const { showLoader, hideLoader } = useLoading();
const { hideLoader } = useLoading();

const [polygonLoaded, setPolygonLoaded] = useState<boolean>(false);
const [submitPolygonLoaded, setSubmitPolygonLoaded] = useState<boolean>(false);
Expand Down Expand Up @@ -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 }));
Expand Down Expand Up @@ -202,7 +201,6 @@ const SiteOverviewTab = ({ site, refetch: refetchEntity }: SiteOverviewTabProps)
variant: "primary",
onClick: () => {
setSaveFlags(true);
showLoader();
}
}}
acceptedTypes={FileType.AcceptedShapefiles.split(",") as FileType[]}
Expand Down

0 comments on commit 17cdbf8

Please sign in to comment.