Skip to content

Commit

Permalink
fix(geo): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored and plouc committed Nov 9, 2020
1 parent 10642f1 commit bc39883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/geo/src/ChoroplethCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const ChoroplethCanvas = memo(
])

const { showTooltipFromEvent, hideTooltip } = useTooltip()
const handleMouseMove = useCallback(() => {
const handleMouseMove = useCallback((event) => {
if (!isInteractive || !Tooltip) return

const feature = getFeatureFromMouseEvent(
Expand Down Expand Up @@ -176,7 +176,7 @@ const ChoroplethCanvas = memo(
isInteractive,
hideTooltip,
])
const handleClick = useCallback(() => {
const handleClick = useCallback((event) => {
if (!isInteractive || !onClick) return

const feature = getFeatureFromMouseEvent(
Expand Down
4 changes: 2 additions & 2 deletions packages/geo/src/GeoMapCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const GeoMapCanvas = memo(props => {
])

const { showTooltipFromEvent, hideTooltip } = useTooltip()
const handleMouseMove = useCallback(() => {
const handleMouseMove = useCallback((event) => {
if (!isInteractive || !Tooltip) return

const feature = getFeatureFromMouseEvent(event, canvasEl.current, features, projection)
Expand All @@ -139,7 +139,7 @@ const GeoMapCanvas = memo(props => {
isInteractive,
hideTooltip,
])
const handleClick = useCallback(() => {
const handleClick = useCallback((event) => {
if (!isInteractive || !onClick) return

const feature = getFeatureFromMouseEvent(event, canvasEl.current, features, projection)
Expand Down

0 comments on commit bc39883

Please sign in to comment.