diff options
| author | MohamedBassem <me@mbassem.com> | 2024-05-06 19:45:08 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-05-12 14:00:00 +0100 |
| commit | 8521580ffa8573ab6edb3dbeb78765cb728ae7ad (patch) | |
| tree | 8868ecc783f447450c78ff02286dc291758ab24b /apps/mobile/app/dashboard/(tabs) | |
| parent | e6c9ef4215257eef6afbac7834a58c025fe0d303 (diff) | |
| download | karakeep-8521580ffa8573ab6edb3dbeb78765cb728ae7ad.tar.zst | |
feature(mobile): Show server address in the settings
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)')
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/settings.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/settings.tsx b/apps/mobile/app/dashboard/(tabs)/settings.tsx index 93033926..73d1b42d 100644 --- a/apps/mobile/app/dashboard/(tabs)/settings.tsx +++ b/apps/mobile/app/dashboard/(tabs)/settings.tsx @@ -3,10 +3,12 @@ import { Button } from "@/components/ui/Button"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; import PageTitle from "@/components/ui/PageTitle"; import { useSession } from "@/lib/session"; +import useAppSettings from "@/lib/settings"; import { api } from "@/lib/trpc"; export default function Dashboard() { const { logout } = useSession(); + const { settings, isLoading: isSettingsLoading } = useAppSettings(); const { data, error, isLoading } = api.users.whoami.useQuery(); @@ -17,7 +19,12 @@ export default function Dashboard() { return ( <CustomSafeAreaView> <PageTitle title="Settings" /> - <View className="flex h-full w-full items-center gap-4 px-4 py-2"> + <View className="flex h-full w-full items-center gap-3 px-4 py-2"> + <View className="w-full rounded-lg bg-white px-4 py-2 dark:bg-accent"> + <Text className="text-lg text-accent-foreground"> + {isSettingsLoading ? "Loading ..." : settings.address} + </Text> + </View> <View className="w-full rounded-lg bg-white px-4 py-2 dark:bg-accent"> <Text className="text-lg text-accent-foreground"> {isLoading ? "Loading ..." : data?.email} |
