File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/components/HuntingMap Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import type {
66} from 'react' ;
77import {
88 createRef ,
9- memo ,
109 useCallback ,
1110 useEffect ,
1211 useMemo ,
@@ -61,9 +60,6 @@ import type {
6160import type { HuntingMapDragOptions , HuntingMapProps } from './types' ;
6261import styles from './HuntingMap.module.css' ;
6362
64- const HuntingMapAnimalMemo = memo ( HuntingMapAnimal ) ;
65- const HuntingMapMarkerMemo = memo ( HuntingMapMarker ) ;
66-
6763export const HuntingMap = ( props : HuntingMapProps ) => {
6864 const {
6965 animalMarkers,
@@ -741,7 +737,7 @@ export const HuntingMap = (props: HuntingMapProps) => {
741737 animalMarkerRefs . current . push ( { marker, ref } ) ;
742738
743739 return (
744- < HuntingMapAnimalMemo
740+ < HuntingMapAnimal
745741 key = { marker . id }
746742 marker = { marker }
747743 markerSize = { markerSizeAnimal }
@@ -779,7 +775,7 @@ export const HuntingMap = (props: HuntingMapProps) => {
779775 genericMarkerRefs . current . push ( { marker, ref } ) ;
780776
781777 return (
782- < HuntingMapMarkerMemo
778+ < HuntingMapMarker
783779 className = { getGenericMarkerColorClass (
784780 marker ,
785781 styles . HuntingMapMarkerGeneric ,
You can’t perform that action at this time.
0 commit comments