- Add Expo Router with bottom tabs (Home, Scan, Proforma, Payments, Profile) - Home: earnings summary, quick actions, invoice list with Waiting/Paid filters - Scan: placeholder for camera flow, recent scans list - Proforma: list of proforma requests with send-to-contacts CTA - Payments: pending match and reconciled list - Profile: account info, about, logout - Apply Yaltopia theme: primary orange (#ea580c), dark navbar/tabs (#2d2d2d) - Add mock data (invoices, proforma, payments, user) in lib/mock-data.ts - Root layout: GestureHandler, SafeArea, PortalHost; tab bar dark with orange active Co-authored-by: Cursor <cursoragent@cursor.com>
55 lines
2.1 KiB
TypeScript
55 lines
2.1 KiB
TypeScript
import { View, ScrollView } from 'react-native';
|
|
import { Text } from '@/components/ui/text';
|
|
import { Button } from '@/components/ui/button';
|
|
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
|
import { MOCK_USER } from '@/lib/mock-data';
|
|
|
|
export default function ProfileScreen() {
|
|
return (
|
|
<ScrollView className="flex-1 bg-background" contentContainerStyle={{ padding: 16, paddingBottom: 32 }}>
|
|
<View className="mb-6 items-center">
|
|
<View className="mb-3 h-20 w-20 items-center justify-center rounded-full bg-primary">
|
|
<Text className="text-3xl font-bold text-primary-foreground">{MOCK_USER.name[0]}</Text>
|
|
</View>
|
|
<Text className="text-xl font-semibold text-gray-900">{MOCK_USER.name}</Text>
|
|
<Text className="text-muted-foreground text-sm">{MOCK_USER.email}</Text>
|
|
</View>
|
|
|
|
<Card className="mb-4">
|
|
<CardHeader>
|
|
<CardTitle>Account</CardTitle>
|
|
</CardHeader>
|
|
<CardContent className="gap-2">
|
|
<View className="flex-row justify-between py-2">
|
|
<Text className="text-muted-foreground">Email</Text>
|
|
<Text className="text-gray-900">{MOCK_USER.email}</Text>
|
|
</View>
|
|
<View className="flex-row justify-between py-2">
|
|
<Text className="text-muted-foreground">Language</Text>
|
|
<Text className="text-gray-900">English</Text>
|
|
</View>
|
|
<View className="flex-row justify-between py-2">
|
|
<Text className="text-muted-foreground">Notifications</Text>
|
|
<Text className="text-gray-900">On</Text>
|
|
</View>
|
|
</CardContent>
|
|
</Card>
|
|
|
|
<Card className="mb-4">
|
|
<CardHeader>
|
|
<CardTitle>About</CardTitle>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<Text className="text-muted-foreground text-sm">
|
|
Yaltopia Tickets App — Scan. Send. Reconcile. Companion to the Yaltopia Tickets web app.
|
|
</Text>
|
|
</CardContent>
|
|
</Card>
|
|
|
|
<Button variant="destructive" className="mt-2">
|
|
<Text className="font-medium">Log out</Text>
|
|
</Button>
|
|
</ScrollView>
|
|
);
|
|
}
|