Skip to content

Commit 522bb76

Browse files
committed
fix background color if the item is pressed
1 parent 5c450e4 commit 522bb76

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/MenuItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ function MenuItem(
643643
)}
644644
{shouldShowAvatar && shouldShowSubscriptAvatar && (
645645
<SubscriptAvatar
646-
backgroundColor={isHovered ? theme.hoverComponentBG : undefined}
646+
// eslint-disable-next-line no-nested-ternary
647+
backgroundColor={pressed ? theme.buttonHoveredBG : isHovered ? theme.hoverComponentBG : undefined}
647648
mainAvatar={firstIcon as IconType}
648649
secondaryAvatar={(icon as IconType[]).at(1)}
649650
size={avatarSize}

src/pages/workspace/WorkspaceInitialPage.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac
393393
<ScreenWrapper
394394
testID={WorkspaceInitialPage.displayName}
395395
includeSafeAreaPaddingBottom={false}
396-
offlineIndicatorStyle={styles.mtAuto}
397396
>
398397
<FullPageNotFoundView
399398
onBackButtonPress={Navigation.dismissModal}
@@ -415,10 +414,7 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac
415414
style={styles.headerBarDesktopHeight}
416415
/>
417416

418-
<ScrollView
419-
contentContainerStyle={[styles.flexColumn]}
420-
style={[styles.flexGrow0]}
421-
>
417+
<ScrollView contentContainerStyle={[styles.flexColumn]}>
422418
<OfflineWithFeedback
423419
pendingAction={policy?.pendingAction}
424420
onClose={() => dismissError(policyID, policy?.pendingAction)}

0 commit comments

Comments
 (0)