Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Oct 28, 2024
1 parent 82f0c6e commit 8776802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/navigation-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const MainNavigationBarBurgerMenu = ({

const shadowAlpha = isDarkMode ? 1 : 0.2;

const getClosableInteractionProps = (interactiveProps: InteractiveProps) => {
const getInteractivePropsWithCloseMenu = (interactiveProps: InteractiveProps) => {
return interactiveProps.onPress
? {
onPress: () => {
Expand Down Expand Up @@ -290,7 +290,7 @@ const MainNavigationBarBurgerMenu = ({
bleedY
bleedRight
withChevron
{...getClosableInteractionProps(interactiveProps)}
{...getInteractivePropsWithCloseMenu(interactiveProps)}
>
{texts.MainNavigationBarSectionSeeAll ||
t(tokens.MainNavigationBarSectionSeeAll)}
Expand All @@ -311,7 +311,7 @@ const MainNavigationBarBurgerMenu = ({
<Row
key={itemIndex}
title={itemTitle}
{...getClosableInteractionProps(itemInteractiveProps)}
{...getInteractivePropsWithCloseMenu(itemInteractiveProps)}
/>
)
)}
Expand Down Expand Up @@ -358,7 +358,7 @@ const MainNavigationBarBurgerMenu = ({
title={title}
{...(menu
? {onPress: () => setOpenedSection(index)}
: getClosableInteractionProps(interactiveProps))}
: getInteractivePropsWithCloseMenu(interactiveProps))}
/>
))}
</RowList>
Expand Down

0 comments on commit 8776802

Please sign in to comment.