From b919031e42e0f03a4987d58922685a7ef9c345b1 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 12 Nov 2024 19:42:03 +0000 Subject: [PATCH] rename `Btn` to `TabItem` --- src/view/shell/bottom-bar/BottomBar.tsx | 29 ++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 0845316e02..8952aaaa53 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -146,7 +146,7 @@ export function BottomBar({navigation}: BottomTabBarProps) { /> ) : ( @@ -239,24 +239,24 @@ export function BottomBar({navigation}: BottomTabBarProps) { }}> {hasSession ? ( <> - - - - - , | 'accessible' @@ -359,7 +359,7 @@ interface BtnProps onLongPress?: (event: GestureResponderEvent) => void } -let Btn = ({ +function TabItem({ testID, renderIcon, notificationCount, @@ -368,7 +368,7 @@ let Btn = ({ accessible, accessibilityHint, accessibilityLabel, -}: BtnProps): React.ReactNode => { +}: TabItemProps) { return ( ) } -Btn = React.memo(Btn)