Skip to content

Commit

Permalink
Merge pull request #43740 from bernhardoj/fix/43062-hide-offline-indi…
Browse files Browse the repository at this point in the history
…cator-in-narrow-layout

Fix offline indicator appears in Edit categories RHP on large layout
  • Loading branch information
arosiclair authored Jun 17, 2024
2 parents b3f688b + aa7caa7 commit 2c90f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ScreenWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function ScreenWrapper(
const navigationFallback = useNavigation<StackNavigationProp<RootStackParamList>>();
const navigation = navigationProp ?? navigationFallback;
const {windowHeight} = useWindowDimensions(shouldUseCachedViewportHeight);
const {isSmallScreenWidth} = useResponsiveLayout();
const {isSmallScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout();
const {initialHeight} = useInitialDimensions();
const styles = useThemeStyles();
const keyboardState = useKeyboardState();
Expand Down Expand Up @@ -279,7 +279,7 @@ function ScreenWrapper(
: children
}
{isSmallScreenWidth && shouldShowOfflineIndicator && <OfflineIndicator style={offlineIndicatorStyle} />}
{!isSmallScreenWidth && shouldShowOfflineIndicatorInWideScreen && (
{!shouldUseNarrowLayout && shouldShowOfflineIndicatorInWideScreen && (
<OfflineIndicator
containerStyles={[]}
style={[styles.pl5, styles.offlineIndicatorRow, offlineIndicatorStyle]}
Expand Down

0 comments on commit 2c90f74

Please sign in to comment.