diff --git a/mobile/app.json b/mobile/app.json index 281cb08..23d3c22 100644 --- a/mobile/app.json +++ b/mobile/app.json @@ -25,6 +25,10 @@ "web": { "favicon": "./assets/favicon.png" }, - "plugins": ["expo-router", "expo-secure-store"] + "plugins": [ + "expo-router", + "expo-secure-store", + "expo-font" + ] } } diff --git a/mobile/app/(app)/index.tsx b/mobile/app/(app)/index.tsx index 75609de..6d4d691 100644 --- a/mobile/app/(app)/index.tsx +++ b/mobile/app/(app)/index.tsx @@ -1,7 +1,10 @@ -import { View, Text, Pressable, StyleSheet, ActivityIndicator } from "react-native"; +import { View, Text, StyleSheet, ActivityIndicator } from "react-native"; import { useQuery } from "@tanstack/react-query"; import { useAuth, useUser } from "@clerk/expo"; import { useTRPC } from "../../src/api/trpc"; +import { Button } from "../../src/components/Button"; +import { Card } from "../../src/components/Card"; +import { colors, typography } from "../../src/theme/tokens"; /** * Placeholder home screen — its only job right now is to prove the mobile @@ -19,32 +22,34 @@ export default function HomeScreen() { Angemeldet als {user?.primaryEmailAddress?.emailAddress} - + Backend-Verbindung - {isLoading && } + {isLoading && } {error && {error.message}} {data && ( <> - Owner: {data.ownerCount} - Pets: {data.petCount} - Sponsoren: {data.sponsorCount} + Owner: {data.ownerCount} + Pets: {data.petCount} + Sponsoren: {data.sponsorCount} )} - + - signOut()}> - Abmelden - +