Skip to content

Commit 001dec4

Browse files
committed
rename variable
1 parent 1b48664 commit 001dec4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Tooltip/EducationalTooltip/BaseEducationalTooltip.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ function BaseEducationalTooltip({children, shouldRender = false, shouldHideOnNav
3232

3333
const isResizing = useIsResizing();
3434

35-
const shouldHideOnBlur = !isFocused && shouldHideOnNavigate;
35+
const shouldSuppressTooltip = !isFocused && shouldHideOnNavigate;
3636

3737
const renderTooltip = useCallback(() => {
38-
if (!tooltipElementRef.current || !genericTooltipStateRef.current || shouldHideOnBlur) {
38+
if (!tooltipElementRef.current || !genericTooltipStateRef.current || shouldSuppressTooltip) {
3939
return;
4040
}
4141

@@ -68,7 +68,7 @@ function BaseEducationalTooltip({children, shouldRender = false, shouldHideOnNav
6868
showTooltip();
6969
}
7070
});
71-
}, [insets, shouldHideOnBlur]);
71+
}, [insets, shouldSuppressTooltip]);
7272

7373
useEffect(() => {
7474
if (!genericTooltipStateRef.current || !shouldRender) {
@@ -123,7 +123,7 @@ function BaseEducationalTooltip({children, shouldRender = false, shouldHideOnNav
123123
}, []);
124124

125125
useEffect(() => {
126-
if (!shouldMeasure || shouldHideOnBlur) {
126+
if (!shouldMeasure || shouldSuppressTooltip) {
127127
return;
128128
}
129129
if (!shouldRender) {
@@ -137,7 +137,7 @@ function BaseEducationalTooltip({children, shouldRender = false, shouldHideOnNav
137137
return () => {
138138
clearTimeout(timerID);
139139
};
140-
}, [shouldMeasure, shouldRender, shouldHideOnBlur]);
140+
}, [shouldMeasure, shouldRender, shouldSuppressTooltip]);
141141

142142
useEffect(() => {
143143
if (!navigator) {

0 commit comments

Comments
 (0)