Skip to content

Commit 905bf8a

Browse files
authored
chore: fix lint (react-bootstrap#5712)
1 parent bbef7a7 commit 905bf8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/TransitionWrapper.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@ const TransitionWrapper = React.forwardRef<
4545
mergedRef(safeFindDOMNode(r));
4646
};
4747

48-
const normalize = (
49-
callback?: (node: HTMLElement, param: unknown) => void,
50-
) => (param: unknown) => {
48+
const normalize = (callback?: (node: HTMLElement, param: any) => void) => (
49+
param: any,
50+
) => {
5151
if (callback && nodeRef.current) {
5252
callback(nodeRef.current, param);
5353
}
5454
};
5555

56+
/* eslint-disable react-hooks/exhaustive-deps */
5657
const handleEnter = useCallback(normalize(onEnter), [onEnter]);
5758
const handleEntering = useCallback(normalize(onEntering), [onEntering]);
5859
const handleEntered = useCallback(normalize(onEntered), [onEntered]);
@@ -62,6 +63,7 @@ const TransitionWrapper = React.forwardRef<
6263
const handleAddEndListener = useCallback(normalize(addEndListener), [
6364
addEndListener,
6465
]);
66+
/* eslint-enable react-hooks/exhaustive-deps */
6567

6668
return (
6769
<Transition

0 commit comments

Comments
 (0)