Skip to content

Commit 5cd6086

Browse files
committed
fix: lint
1 parent c52ab12 commit 5cd6086

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Tooltip/EducationalTooltip/BaseEducationalTooltip.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import GenericTooltip from '@components/Tooltip/GenericTooltip';
44
import type {EducationalTooltipProps} from '@components/Tooltip/types';
55
import onyxSubscribe from '@libs/onyxSubscribe';
66
import ONYXKEYS from '@src/ONYXKEYS';
7-
import {Modal} from '@src/types/onyx';
7+
import type {Modal} from '@src/types/onyx';
88
import measureTooltipCoordinate from './measureTooltipCoordinate';
99

1010
type LayoutChangeEventWithTarget = NativeSyntheticEvent<{layout: LayoutRectangle; target: HTMLElement}>;
@@ -26,7 +26,9 @@ function BaseEducationalTooltip({children, onHideTooltip, shouldRender = false,
2626
const shouldShow = !modal?.willAlertModalBecomeVisible && !modal?.isVisible && shouldRender;
2727

2828
useEffect(() => {
29-
if (!shouldRender) return;
29+
if (!shouldRender) {
30+
return;
31+
}
3032
const unsubscribeOnyxModal = onyxSubscribe({
3133
key: ONYXKEYS.MODAL,
3234
callback: (modalArg) => {

0 commit comments

Comments
 (0)