feat: Implement initial with admin and mobile clients, authentication, data models, and lead generation scripts.

This commit is contained in:
2026-02-19 16:18:34 +01:00
parent c53a71a5f9
commit 5e2d5fb3ae
32 changed files with 2283 additions and 420 deletions

View File

@@ -2,7 +2,7 @@ import { View, Text, ScrollView, TouchableOpacity, Alert, StyleSheet } from 'rea
import { SafeAreaView } from 'react-native-safe-area-context'
import { Ionicons } from '@expo/vector-icons'
import { useAuth } from '@/hooks/useAuth'
import { MOCK_MEMBER_ME } from '@/lib/mock-data'
import { trpc } from '@/lib/trpc'
type Item = {
label: string
@@ -20,9 +20,10 @@ const MENU_ITEMS: Item[] = [
export default function ProfilScreen() {
const { signOut } = useAuth()
const member = MOCK_MEMBER_ME
const { data: me } = trpc.members.me.useQuery()
const name = me?.name ?? ''
const initials = member.name
const initials = name
.split(' ')
.slice(0, 2)
.map((chunk) => chunk[0]?.toUpperCase() ?? '')
@@ -42,7 +43,7 @@ export default function ProfilScreen() {
<Ionicons name="settings-outline" size={15} color="#64748B" />
</TouchableOpacity>
</View>
<Text style={styles.name}>{member.name}</Text>
<Text style={styles.name}>{name}</Text>
<Text style={styles.role}>Innungsgeschaeftsfuehrer</Text>
<View style={styles.badgesRow}>
<View style={styles.statusBadge}>