Skip to content

Commit 724cf13

Browse files
committed
fix: lint
1 parent 2c8c7b1 commit 724cf13

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

scripts/typescript-output-lint.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ const unusedViewProps = [
6767
'onPointerDownCapture',
6868
'onPointerUp',
6969
'onPointerUpCapture',
70-
'onHoverIn',
71-
'onHoverOut',
7270
'cancelable',
7371
'delayHoverIn',
7472
'delayHoverOut',

src/components/Tooltip/Tooltip.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,21 @@ const Tooltip = ({
155155
const props = children.props as TooltipChildProps;
156156
if (props.disabled) return null;
157157
return props.onPress?.();
158-
}, [children, isValidChild]);
158+
}, [children.props, isValidChild]);
159159

160160
const handleHoverIn = React.useCallback(() => {
161161
handleTouchStart();
162162
if (isValidChild) {
163163
(children.props as TooltipChildProps).onHoverIn?.();
164164
}
165-
}, [children, handleTouchStart, isValidChild]);
165+
}, [children.props, handleTouchStart, isValidChild]);
166166

167167
const handleHoverOut = React.useCallback(() => {
168168
handleTouchEnd();
169169
if (isValidChild) {
170170
(children.props as TooltipChildProps).onHoverOut?.();
171171
}
172-
}, [children, handleTouchEnd, isValidChild]);
172+
}, [children.props, handleTouchEnd, isValidChild]);
173173

174174
const handleOnLayout = ({ nativeEvent: { layout } }: LayoutChangeEvent) => {
175175
childrenWrapperRef.current?.measure(

0 commit comments

Comments
 (0)