build and format

This commit is contained in:
2025-12-01 11:08:53 +03:30
parent 9d10fefaca
commit 15106d02c0
4 changed files with 5 additions and 13 deletions

View File

@@ -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 (
<Box>
<Tooltip title="نمایش پلیگان" placement="right" arrow>

View File

@@ -238,11 +238,9 @@ const TollHouseList = () => {
grow: false,
size: 100,
Cell: ({ row }) =>
row.original.area ? (
row.original.area ? (
<Stack alignItems={"center"} justifyContent={"center"}>
<ShowProjectArea
primaryArea={row.original.area}
/>
<ShowProjectArea primaryArea={row.original.area} />
</Stack>
) : (
"-"

View File

@@ -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({

View File

@@ -122,8 +122,8 @@ const RoadSafetyReportMap = () => {
props.dependencyFieldValue?.value === ""
? "empty"
: loadingEdaratList
? "loading"
: props.filterParameters.value
? "loading"
: props.filterParameters.value
}
selectOption={getSelectOptions}
/>