Skip to content

Commit

Permalink
[TM-978] remove unused component
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Jun 17, 2024
1 parent 34ef63e commit 1057959
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 216 deletions.
187 changes: 0 additions & 187 deletions src/components/elements/MapPolygonPanel/MapPolygonSitePanel.tsx

This file was deleted.

55 changes: 55 additions & 0 deletions src/generated/apiComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33742,6 +33742,56 @@ export const useGetV2DashboardProjectDataUuid = <TData = GetV2DashboardProjectDa
);
};

export type GetV2DashboardViewProjectUuidPathParams = {
/**
* UUID of the project
*/
uuid: string;
};

export type GetV2DashboardViewProjectUuidError = Fetcher.ErrorWrapper<undefined>;

export type GetV2DashboardViewProjectUuidResponse = {
data?: {
allowed?: boolean;
};
};

export type GetV2DashboardViewProjectUuidVariables = {
pathParams: GetV2DashboardViewProjectUuidPathParams;
} & ApiContext["fetcherOptions"];

export const fetchGetV2DashboardViewProjectUuid = (
variables: GetV2DashboardViewProjectUuidVariables,
signal?: AbortSignal
) =>
apiFetch<
GetV2DashboardViewProjectUuidResponse,
GetV2DashboardViewProjectUuidError,
undefined,
{},
{},
GetV2DashboardViewProjectUuidPathParams
>({ url: "/v2/dashboard/view-project/{uuid}", method: "get", ...variables, signal });

export const useGetV2DashboardViewProjectUuid = <TData = GetV2DashboardViewProjectUuidResponse>(
variables: GetV2DashboardViewProjectUuidVariables,
options?: Omit<
reactQuery.UseQueryOptions<GetV2DashboardViewProjectUuidResponse, GetV2DashboardViewProjectUuidError, TData>,
"queryKey" | "queryFn"
>
) => {
const { fetcherOptions, queryOptions, queryKeyFn } = useApiContext(options);
return reactQuery.useQuery<GetV2DashboardViewProjectUuidResponse, GetV2DashboardViewProjectUuidError, TData>(
queryKeyFn({ path: "/v2/dashboard/view-project/{uuid}", operationId: "getV2DashboardViewProjectUuid", variables }),
({ signal }) => fetchGetV2DashboardViewProjectUuid({ ...fetcherOptions, ...variables }, signal),
{
...options,
...queryOptions
}
);
};

export type GetV2TerrafundPolygonGeojsonUuidPathParams = {
/**
* The UUID of the polygon geometry to retrieve.
Expand Down Expand Up @@ -34623,6 +34673,11 @@ export type QueryOperation =
operationId: "getV2DashboardProjectDataUuid";
variables: GetV2DashboardProjectDataUuidVariables;
}
| {
path: "/v2/dashboard/view-project/{uuid}";
operationId: "getV2DashboardViewProjectUuid";
variables: GetV2DashboardViewProjectUuidVariables;
}
| {
path: "/v2/terrafund/polygon/geojson/{uuid}";
operationId: "getV2TerrafundPolygonGeojsonUuid";
Expand Down
6 changes: 6 additions & 0 deletions src/generated/apiSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23512,3 +23512,9 @@ export type SitePolygonResource = {
export type SiteCheckApproveResponse = {
can_approve?: boolean;
};

export type DashboardProjectViewResponse = {
data?: {
allowed?: boolean;
};
};
29 changes: 0 additions & 29 deletions src/pages/site/[uuid]/components/MockedData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MapPolygonCheckPanelItemProps } from "@/components/elements/MapPolygonPanel/MapPolygonCheckPanelItem";
import { MapPolygonPanelItemProps } from "@/components/elements/MapPolygonPanel/MapPolygonPanelItem";

export const uploadImageData = [
{ id: "1", name: "Images5.png", status: "We are processing your image", isVerified: true },
Expand Down Expand Up @@ -44,34 +43,6 @@ export const commentariesItems = [
}
];

export const PolygonData: MapPolygonPanelItemProps[] = [
{
uuid: "1",
title: "Polygon 1",
subtitle: "Created 15/12/2023"
},
{
uuid: "2",
title: "Polygon 2",
subtitle: "Created 15/12/2023"
},
{
uuid: "3",
title: "Polygon 3",
subtitle: "Created 15/12/2023"
},
{
uuid: "4",
title: "Polygon 4",
subtitle: "Created 15/12/2023"
},
{
uuid: "5",
title: "Polygon 5",
subtitle: "Created 15/12/2023"
}
];

export const PolygonAvailableData: MapPolygonCheckPanelItemProps[] = [
{
uuid: "1",
Expand Down

0 comments on commit 1057959

Please sign in to comment.