Skip to content

Commit

Permalink
Merge pull request #977 from mapswipe/fix/typing-issue-username-change
Browse files Browse the repository at this point in the history
Update typings
  • Loading branch information
frozenhelium authored Oct 29, 2024
2 parents bdceb72 + 90f0996 commit 7485e42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ function HeatmapComponent(props: HeatmapComponentProps) {
const map = useMap();

useEffect(() => {
map.gestureHandling.enable();
// NOTE: We need to cast type of map here because of how gesture handle plugin works
type MapWithGestureHandle = typeof map & { gestureHandling: { enable: () => void }};
(map as MapWithGestureHandle).gestureHandling.enable();
}, [map]);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion community-dashboard/app/components/MemberItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface Props {
totalMappingProjects: number;
totalSwipeTime: number;
totalSwipes: number;
username: string;
username?: string | null;
userId: string;
isActive: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function SearchSelectInput<
);

const optionRendererParamsDefault = useCallback(
(key: T, option: O) => {
(key: T, option: O): P => {
const isActive = key === value;

return {
Expand Down

0 comments on commit 7485e42

Please sign in to comment.