Skip to content

Commit 3e59ffd

Browse files
committed
Rename isLhbVisible to isLHBVisible
1 parent 9c58fe5 commit 3e59ffd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/FloatingActionButton.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role, isTo
5656
// On Home screen, We need to wait for the sidebar to load before showing the tooltip because there is the Concierge tooltip which is higher priority
5757
isTooltipAllowed && (!isHomeRouteActive || isSidebarLoaded),
5858
);
59-
const isLhbVisible = !shouldUseNarrowLayout;
59+
const isLHBVisible = !shouldUseNarrowLayout;
6060

61-
const fabSize = isLhbVisible ? variables.iconSizeSmall : variables.iconSizeNormal;
61+
const fabSize = isLHBVisible ? variables.iconSizeSmall : variables.iconSizeNormal;
6262

6363
const sharedValue = useSharedValue(isActive ? 1 : 0);
6464
const buttonRef = ref;
6565

66-
const tooltipHorizontalAnchorAlignment = isLhbVisible ? CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT : CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT;
67-
const tooltipShiftHorizontal = isLhbVisible ? variables.lhbFabTooltipShiftHorizontal : variables.fabTooltipShiftHorizontal;
66+
const tooltipHorizontalAnchorAlignment = isLHBVisible ? CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT : CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT;
67+
const tooltipShiftHorizontal = isLHBVisible ? variables.lhbFabTooltipShiftHorizontal : variables.fabTooltipShiftHorizontal;
6868

6969
useEffect(() => {
7070
sharedValue.set(
@@ -119,13 +119,13 @@ function FloatingActionButton({onPress, isActive, accessibilityLabel, role, isTo
119119
shouldUseHapticsOnLongPress={false}
120120
testID="floating-action-button"
121121
>
122-
<Animated.View style={[styles.floatingActionButton, {borderRadius}, isLhbVisible && styles.floatingActionButtonSmall, animatedStyle]}>
122+
<Animated.View style={[styles.floatingActionButton, {borderRadius}, isLHBVisible && styles.floatingActionButtonSmall, animatedStyle]}>
123123
<Svg
124124
width={fabSize}
125125
height={fabSize}
126126
>
127127
<AnimatedPath
128-
d={isLhbVisible ? SMALL_FAB_PATH : FAB_PATH}
128+
d={isLHBVisible ? SMALL_FAB_PATH : FAB_PATH}
129129
fill={textLight}
130130
/>
131131
</Svg>

0 commit comments

Comments
 (0)