feat: Sprint 3 — Territory management (list, add, edit, delete, detail), GPS tagging, territory tab

This commit is contained in:
root
2026-02-18 16:41:47 +08:00
parent 419865e8cf
commit 9bd02b1a17
9 changed files with 425 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
// app/(tabs)/_layout.tsx
import { Tabs, router } from 'expo-router';
import { useEffect } from 'react';
import { Home, Users, Map, Settings } from 'lucide-react-native';
import { Home, Users, Map, Settings, MapPin } from 'lucide-react-native';
import { useUserStore } from '@/store/useUserStore';
export default function TabLayout() {
@@ -23,6 +23,7 @@ export default function TabLayout() {
>
<Tabs.Screen name="index" options={{ title: 'Home', tabBarIcon: ({ color, size }) => <Home size={size} color={color} /> }} />
<Tabs.Screen name="contacts" options={{ title: 'Contacts', tabBarIcon: ({ color, size }) => <Users size={size} color={color} /> }} />
<Tabs.Screen name="territories" options={{ title: 'Territories', tabBarIcon: ({ color, size }) => <MapPin size={size} color={color} /> }} />
<Tabs.Screen name="map" options={{ title: 'Map', tabBarIcon: ({ color, size }) => <Map size={size} color={color} /> }} />
<Tabs.Screen name="settings" options={{ title: 'Settings', tabBarIcon: ({ color, size }) => <Settings size={size} color={color} /> }} />
</Tabs>