From c54085fe3f443312b33e75bf762cf2cfab9ef913 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 29 Jun 2026 10:46:47 +0200 Subject: [PATCH] fix: remove duplicate map nodes causing m is not defined build error --- components/blocks/InteractiveGermanyMap.tsx | 51 --------------------- 1 file changed, 51 deletions(-) diff --git a/components/blocks/InteractiveGermanyMap.tsx b/components/blocks/InteractiveGermanyMap.tsx index 1d3e5615d..ba855578b 100644 --- a/components/blocks/InteractiveGermanyMap.tsx +++ b/components/blocks/InteractiveGermanyMap.tsx @@ -32,58 +32,7 @@ interface InteractiveGermanyMapProps { hideStandorte?: boolean; } -const MinorNode = React.memo(({ loc, isActive, onEnter, onLeave }: { loc: Location, isActive: boolean, onEnter: (loc: Location) => void, onLeave: () => void }) => ( -
onEnter(loc)} - onMouseLeave={onLeave} - onTouchStart={() => onEnter(loc)} - onClick={() => onEnter(loc)} - > -
-
-
-)); -MinorNode.displayName = 'MinorNode'; -const MajorNode = React.memo(({ loc, isActive, idx, onEnter, onLeave }: { loc: Location, isActive: boolean, idx: number, onEnter: (loc: Location) => void, onLeave: () => void }) => { - const isHQ = loc.type === 'hq'; - const isBranch = loc.type === 'branch'; - return ( -
onEnter(loc)} - onMouseLeave={onLeave} - onTouchStart={() => onEnter(loc)} - onClick={() => onEnter(loc)} - > - {(isHQ || isBranch) && ( -
- )} - - {(isHQ || isBranch) && } - -
- ); -}); -MajorNode.displayName = 'MajorNode'; export function InteractiveGermanyMap({ badge,