|
1 | 1 | import { useAuthQuery, useClientContext, useSDK } from '@stump/client'
|
2 | 2 | import { isAxiosError } from 'axios'
|
3 |
| -import { Tabs, useRouter } from 'expo-router' |
| 3 | +import { Tabs } from 'expo-router' |
4 | 4 | import { useEffect } from 'react'
|
5 |
| -import { View } from 'react-native' |
6 |
| -import { Pressable } from 'react-native-gesture-handler' |
7 | 5 |
|
8 | 6 | import { icons } from '~/components/ui'
|
9 | 7 | import { useColors } from '~/lib/constants'
|
10 | 8 | import { cn } from '~/lib/utils'
|
11 | 9 | import { usePreferencesStore, useUserStore } from '~/stores'
|
12 | 10 |
|
13 |
| -const { Unplug, Home, SquareLibrary, Search } = icons |
| 11 | +const { Home, SquareLibrary, Search } = icons |
14 | 12 |
|
15 | 13 | export default function TabLayout() {
|
16 | 14 | const { sdk } = useSDK()
|
17 | 15 |
|
18 | 16 | const colors = useColors()
|
19 |
| - const router = useRouter() |
20 | 17 | const animationEnabled = usePreferencesStore((state) => !state.reduceAnimations)
|
21 | 18 | const setUser = useUserStore((state) => state.setUser)
|
22 | 19 |
|
@@ -55,20 +52,7 @@ export default function TabLayout() {
|
55 | 52 | tabBarIcon: ({ focused }) => (
|
56 | 53 | <Home className={cn('h-6 w-6 text-foreground-muted', { 'text-foreground': focused })} />
|
57 | 54 | ),
|
58 |
| - headerLeft: () => ( |
59 |
| - <Pressable onPress={() => router.dismissAll()}> |
60 |
| - {({ pressed }) => ( |
61 |
| - <View |
62 |
| - className={cn( |
63 |
| - 'aspect-square flex-1 items-start justify-center px-2', |
64 |
| - pressed && 'opacity-70', |
65 |
| - )} |
66 |
| - > |
67 |
| - <Unplug size={20} className="text-foreground-muted" /> |
68 |
| - </View> |
69 |
| - )} |
70 |
| - </Pressable> |
71 |
| - ), |
| 55 | + headerShown: false, |
72 | 56 | }}
|
73 | 57 | />
|
74 | 58 |
|
|
0 commit comments