diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
index 55fd7d2..2125e44 100644
--- a/app/(tabs)/_layout.tsx
+++ b/app/(tabs)/_layout.tsx
@@ -4,23 +4,26 @@ import { Tabs, router } from 'expo-router';
import { BlurView } from 'expo-blur';
import Svg, { Path, Circle, Line, Polyline } from 'react-native-svg';
import { Colors, TAB_BAR_HEIGHT } from '../../constants/theme';
-import { useAuth, usePlayer } from '../../store';
+import { useAuth, usePlayer, useLikes } from '../../store';
import MiniPlayer from '../../components/MiniPlayer';
import Player from '../../components/Player';
export default function TabsLayout() {
const { user, ready } = useAuth();
const { expanded } = usePlayer();
+ const { loadLikes } = useLikes();
useEffect(() => {
- if (ready && !user) {
- router.replace('/auth');
- }
+ if (ready && !user) router.replace('/auth');
}, [user, ready]);
+ useEffect(() => {
+ if (user) loadLikes();
+ }, [user]);
+
if (!ready) return (
-
+
);
if (!user) return null;
@@ -32,18 +35,19 @@ export default function TabsLayout() {
headerShown: false,
tabBarStyle: styles.tabBar,
tabBarBackground: () => (
-
+
),
- tabBarActiveTintColor: Colors.green,
+ tabBarActiveTintColor: Colors.text,
tabBarInactiveTintColor: Colors.text3,
- tabBarLabelStyle: { fontSize: 10, fontWeight: '600', marginBottom: 4 },
- tabBarItemStyle: { paddingTop: 8 },
+ tabBarLabelStyle: { fontSize: 9, fontWeight: '500', letterSpacing: 0.3, marginBottom: 4 },
+ tabBarItemStyle: { paddingTop: 6 },
}}
>
- }} />
- }} />
- }} />
- }} />
+ }} />
+ }} />
+ }} />
+ }} />
+ }} />
@@ -54,35 +58,39 @@ export default function TabsLayout() {
function HomeIcon({ color }: { color: string }) {
return (
-