From 87768027abfc50ae704f41d6b388529969c45de8 Mon Sep 17 00:00:00 2001 From: marcoskolodny Date: Mon, 28 Oct 2024 14:54:06 +0100 Subject: [PATCH] code cleanup --- src/navigation-bar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/navigation-bar.tsx b/src/navigation-bar.tsx index 51f8b374e..dd4ee7275 100644 --- a/src/navigation-bar.tsx +++ b/src/navigation-bar.tsx @@ -258,7 +258,7 @@ const MainNavigationBarBurgerMenu = ({ const shadowAlpha = isDarkMode ? 1 : 0.2; - const getClosableInteractionProps = (interactiveProps: InteractiveProps) => { + const getInteractivePropsWithCloseMenu = (interactiveProps: InteractiveProps) => { return interactiveProps.onPress ? { onPress: () => { @@ -290,7 +290,7 @@ const MainNavigationBarBurgerMenu = ({ bleedY bleedRight withChevron - {...getClosableInteractionProps(interactiveProps)} + {...getInteractivePropsWithCloseMenu(interactiveProps)} > {texts.MainNavigationBarSectionSeeAll || t(tokens.MainNavigationBarSectionSeeAll)} @@ -311,7 +311,7 @@ const MainNavigationBarBurgerMenu = ({ ) )} @@ -358,7 +358,7 @@ const MainNavigationBarBurgerMenu = ({ title={title} {...(menu ? {onPress: () => setOpenedSection(index)} - : getClosableInteractionProps(interactiveProps))} + : getInteractivePropsWithCloseMenu(interactiveProps))} /> ))}