From 77477c10cf5553499f17b0d5b4f6060ae3f315d7 Mon Sep 17 00:00:00 2001 From: Rustico77 Date: Tue, 12 May 2026 13:46:36 +0000 Subject: [PATCH] Update color for dark mode --- src/navigation/AppNavigator.tsx | 8 ++++++-- src/navigation/CustomTabBar.tsx | 7 ++++--- src/screens/marketplace/MarketplaceScreen.tsx | 1 + src/services/api.ts | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/navigation/AppNavigator.tsx b/src/navigation/AppNavigator.tsx index 5bb7314..faca9a4 100644 --- a/src/navigation/AppNavigator.tsx +++ b/src/navigation/AppNavigator.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import { useColorScheme } from 'react-native'; -import { COLORS } from '../theme'; +import { COLORS, FONT_SIZE, useTheme } from '../theme'; import { CustomTabBar } from './CustomTabBar'; import { useAuthStore } from '../stores/authStore'; import { @@ -42,8 +42,12 @@ const AccStack = createNativeStackNavigator(); // ─── Marketplace (always public) ───────────────────────────────────────────── function MarketplaceNavigator() { + const { theme } = useTheme(); return ( - + void; }) { - const { theme } = useTheme(); + const { theme, isDark } = useTheme(); const scale = useRef(new Animated.Value(1)).current; const bgOpacity = useRef(new Animated.Value(isFocused ? 1 : 0)).current; @@ -94,7 +94,7 @@ function TabItem({ - {icon} + {icon} + {/* Chatbots List */} {isLoading ? ( ) : ( diff --git a/src/services/api.ts b/src/services/api.ts index 9aa8898..45f1bd7 100644 --- a/src/services/api.ts +++ b/src/services/api.ts @@ -19,7 +19,7 @@ api.interceptors.request.use(config => { config.headers.Authorization = `Bearer ${token}`; } return config; -}); +}); api.interceptors.response.use( response => response,