some fixes

This commit is contained in:
Patryk
2025-06-09 20:59:43 +02:00
parent 77c3a694f8
commit 27175ffa91
7 changed files with 221 additions and 197 deletions

View File

@@ -3,11 +3,12 @@ import { Ionicons } from "@expo/vector-icons";
import { useAuthStore } from "@/store/authStore";
export default function TabLayout() {
const token = useAuthStore((state) => state.token);
const { token } = useAuthStore.getState();
if (!token) {
return <Redirect href="/login" />;
}
return (
<Tabs
screenOptions={{