fix linting errors - unused deps etc

This commit is contained in:
2026-09-28 21:56:04 +02:00
parent eef456938a
commit 29e3173d80
5 changed files with 3 additions and 6 deletions
@@ -3,7 +3,7 @@
import { useCallback, useMemo } from "react";
import { useAtomValue } from "jotai";
import L, { LatLngLiteral } from "leaflet";
import L from "leaflet";
import "leaflet-defaulticon-compatibility";
import "leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css";
import "leaflet.smooth_marker_bouncing";
+1 -1
View File
@@ -62,7 +62,7 @@ type MapProps = {
export const Map = ({
filters,
legend,
markers: markers,
markers,
iconCreateFunction,
}: MapProps) => {
const setMapBounds = useSetAtom(mapBoundsAtom);
-2
View File
@@ -1,7 +1,5 @@
"use server";
import { z } from "zod";
import { contactUsSchema } from "@/schemas";
import { errorLog } from "@/utils/logger";
-1
View File
@@ -1,7 +1,6 @@
"use server";
import { ObjectId } from "mongodb";
import { z } from "zod";
import { adapter, auth } from "@/auth";
import { collections, dbConnect } from "@/server/mongodb";
+1 -1
View File
@@ -80,5 +80,5 @@ export function generatePieSVG(
return [...prev, [to, path(getDAttribute(radius, from, to), value.colour)]];
}, []);
return svg(className, radius * 2, paths.map(([to, path]) => path).join(""));
return svg(className, radius * 2, paths.map(([_to, path]) => path).join(""));
}