Skip to content

Commit

Permalink
Review comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit6789 committed Mar 5, 2025
1 parent 008d4f3 commit 0aa4535
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type LayoutChangeEventWithTarget = NativeSyntheticEvent<{layout: LayoutRectangle

type ScrollingEventData = {
isScrolling: boolean;
tooltipName: string;
};
/**
* A component used to wrap an element intended for displaying a tooltip.
Expand Down Expand Up @@ -70,7 +69,7 @@ function BaseEducationalTooltip({children, shouldRender = false, shouldHideOnNav
return;
}
setTooltipPosition(false);
const scrollingListener = DeviceEventEmitter.addListener(CONST.EVENTS.SCROLLING, ({isScrolling}: ScrollingEventData = {isScrolling: false, tooltipName: ''}) => {
const scrollingListener = DeviceEventEmitter.addListener(CONST.EVENTS.SCROLLING, ({isScrolling}: ScrollingEventData = {isScrolling: false}) => {
setTooltipPosition(isScrolling);
});

Expand Down

0 comments on commit 0aa4535

Please sign in to comment.