From 15106d02c0c8d575ab17257c4f5b93bc305e2672 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Mon, 1 Dec 2025 11:08:53 +0330 Subject: [PATCH] build and format --- .../infrastructure/tollHouse/ShowProjectArea/index.jsx | 6 +----- src/components/infrastructure/tollHouse/TollHouseList.jsx | 6 ++---- .../infrastructure/tollHouseMap/PointsOnMap/index.jsx | 2 -- src/components/infrastructure/tollHouseMap/index.jsx | 4 ++-- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/components/infrastructure/tollHouse/ShowProjectArea/index.jsx b/src/components/infrastructure/tollHouse/ShowProjectArea/index.jsx index 202ef61..250cd52 100644 --- a/src/components/infrastructure/tollHouse/ShowProjectArea/index.jsx +++ b/src/components/infrastructure/tollHouse/ShowProjectArea/index.jsx @@ -11,17 +11,13 @@ const ShowProjectArea = ({ primaryArea }) => { const bound = useMemo(() => { const coordinates = Object.values(primaryArea.coordinates); - const latLngCoords = coordinates.map(([lat, lng]) => [ - parseFloat(lng), - parseFloat(lat), - ]); + const latLngCoords = coordinates.map(([lat, lng]) => [parseFloat(lng), parseFloat(lat)]); return primaryArea.type === "polygon" ? L.polygon(latLngCoords, { color: "#ff5555" }) : L.polyline(latLngCoords); }, [primaryArea]); - return ( diff --git a/src/components/infrastructure/tollHouse/TollHouseList.jsx b/src/components/infrastructure/tollHouse/TollHouseList.jsx index e8e6d2f..dc115ec 100644 --- a/src/components/infrastructure/tollHouse/TollHouseList.jsx +++ b/src/components/infrastructure/tollHouse/TollHouseList.jsx @@ -238,11 +238,9 @@ const TollHouseList = () => { grow: false, size: 100, Cell: ({ row }) => - row.original.area ? ( + row.original.area ? ( - + ) : ( "-" diff --git a/src/components/infrastructure/tollHouseMap/PointsOnMap/index.jsx b/src/components/infrastructure/tollHouseMap/PointsOnMap/index.jsx index e0b3f16..05b4d03 100644 --- a/src/components/infrastructure/tollHouseMap/PointsOnMap/index.jsx +++ b/src/components/infrastructure/tollHouseMap/PointsOnMap/index.jsx @@ -34,7 +34,6 @@ const PointsOnMap = ({ data, isCluster }) => { color={getMarkerColor(Number(status))} /> )); - }, [data, theme]); useEffect(() => { @@ -49,7 +48,6 @@ const PointsOnMap = ({ data, isCluster }) => { map.flyToBounds(bounds, { duration: 0.7 }); }, [data]); - const createClusterCustomIcon = (cluster) => { const count = cluster.getChildCount(); return L.divIcon({ diff --git a/src/components/infrastructure/tollHouseMap/index.jsx b/src/components/infrastructure/tollHouseMap/index.jsx index 2177397..f7b5a86 100644 --- a/src/components/infrastructure/tollHouseMap/index.jsx +++ b/src/components/infrastructure/tollHouseMap/index.jsx @@ -122,8 +122,8 @@ const RoadSafetyReportMap = () => { props.dependencyFieldValue?.value === "" ? "empty" : loadingEdaratList - ? "loading" - : props.filterParameters.value + ? "loading" + : props.filterParameters.value } selectOption={getSelectOptions} />