File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ function HeatmapComponent(props: HeatmapComponentProps) {
5050 const map = useMap ( ) ;
5151
5252 useEffect ( ( ) => {
53- map . gestureHandling . enable ( ) ;
53+ // NOTE: We need to cast type of map here because of how gesture handle plugin works
54+ type MapWithGestureHandle = typeof map & { gestureHandling : { enable : ( ) => void } } ;
55+ ( map as MapWithGestureHandle ) . gestureHandling . enable ( ) ;
5456 } , [ map ] ) ;
5557
5658 useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ interface Props {
1313 totalMappingProjects : number ;
1414 totalSwipeTime : number ;
1515 totalSwipes : number ;
16- username : string ;
16+ username ? : string | null ;
1717 userId : string ;
1818 isActive : boolean ;
1919 } ;
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ function SearchSelectInput<
231231 ) ;
232232
233233 const optionRendererParamsDefault = useCallback (
234- ( key : T , option : O ) => {
234+ ( key : T , option : O ) : P => {
235235 const isActive = key === value ;
236236
237237 return {
You can’t perform that action at this time.
0 commit comments