Norms filter

This commit is contained in:
Timothy Armes
2023-07-17 11:51:10 +02:00
parent d3afc1d1f4
commit 22b8724e55
10 changed files with 98 additions and 11 deletions
+3
View File
@@ -28,6 +28,7 @@ import {
rapidAtom,
blitzAtom,
otherAtom,
normsOnlyAtom,
} from "@/app/atoms";
import Legend from "./Legend";
@@ -93,6 +94,8 @@ const stopBouncingMarkers = () => {
const TimeControlGroup = ({ timeControl, colour }: TimeControlGroupProps) => {
const tournaments = useAtomValue(tournamentsAtom);
const normsOnly = useAtomValue(normsOnlyAtom);
const markerRefs = useRef<Record<string, L.Marker<any> | null>>({});
const clusterRef = useRef<L.MarkerClusterGroup | null>(null);
const expandedClusterMarkerRef = useRef<L.MarkerCluster | null>(null);