about summary refs log tree commit diff
path: root/src/view/shell/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/shell/mobile')
-rw-r--r--src/view/shell/mobile/Menu.tsx2
-rw-r--r--src/view/shell/mobile/index.tsx18
2 files changed, 5 insertions, 15 deletions
diff --git a/src/view/shell/mobile/Menu.tsx b/src/view/shell/mobile/Menu.tsx
index 875bb5a3d..26cb5b9bd 100644
--- a/src/view/shell/mobile/Menu.tsx
+++ b/src/view/shell/mobile/Menu.tsx
@@ -62,7 +62,7 @@ export const Menu = observer(
       onPress?: () => void
     }) => (
       <TouchableOpacity
-        testID="menuItemButton"
+        testID={`menuItemButton-${label}`}
         style={styles.menuItem}
         onPress={onPress ? onPress : () => onNavigate(url || '/')}>
         <View style={[styles.menuItemIconWrapper]}>
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx
index c4ca7b9f5..b999d05d9 100644
--- a/src/view/shell/mobile/index.tsx
+++ b/src/view/shell/mobile/index.tsx
@@ -5,7 +5,6 @@ import {
   Easing,
   FlatList,
   GestureResponderEvent,
-  SafeAreaView,
   StatusBar,
   StyleSheet,
   TouchableOpacity,
@@ -16,7 +15,6 @@ import {
   ViewStyle,
 } from 'react-native'
 import {ScreenContainer, Screen} from 'react-native-screens'
-import LinearGradient from 'react-native-linear-gradient'
 import {useSafeAreaInsets} from 'react-native-safe-area-context'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {IconProp} from '@fortawesome/fontawesome-svg-core'
@@ -34,7 +32,7 @@ import {Text} from '../../com/util/text/Text'
 import {ErrorBoundary} from '../../com/util/ErrorBoundary'
 import {TabsSelector} from './TabsSelector'
 import {Composer} from './Composer'
-import {s, colors} from '../../lib/styles'
+import {colors} from '../../lib/styles'
 import {clamp} from '../../../lib/numbers'
 import {
   GridIcon,
@@ -323,18 +321,10 @@ export const MobileShell: React.FC = observer(() => {
 
   if (!store.session.hasSession) {
     return (
-      <LinearGradient
-        colors={['#007CFF', '#00BCFF']}
-        start={{x: 0, y: 0.8}}
-        end={{x: 0, y: 1}}
-        style={styles.outerContainer}>
-        <SafeAreaView testID="noSessionView" style={styles.innerContainer}>
-          <ErrorBoundary>
-            <Login />
-          </ErrorBoundary>
-        </SafeAreaView>
+      <View style={styles.outerContainer}>
+        <Login />
         <Modal />
-      </LinearGradient>
+      </View>
     )
   }
   if (store.onboard.isOnboarding) {