diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-12-29 10:23:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-29 08:23:36 +0000 |
| commit | 6ee48ffb9d628a04c487b73b222be76241ff3ec4 (patch) | |
| tree | 1cf65592f867a9c10d8961f195bcf6dfd438273e /apps/mobile/components/settings | |
| parent | f7523a210b8929483d2436b2795329f81065e4b8 (diff) | |
| download | karakeep-6ee48ffb9d628a04c487b73b222be76241ff3ec4.tar.zst | |
feat(mobile): make the settings menu look more native (#2307)
* feat(mobile): make the settings menu look more native
* more fixes
* review comments
Diffstat (limited to 'apps/mobile/components/settings')
| -rw-r--r-- | apps/mobile/components/settings/UserProfileHeader.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/mobile/components/settings/UserProfileHeader.tsx b/apps/mobile/components/settings/UserProfileHeader.tsx new file mode 100644 index 00000000..6e389877 --- /dev/null +++ b/apps/mobile/components/settings/UserProfileHeader.tsx @@ -0,0 +1,27 @@ +import { View } from "react-native"; +import { Avatar } from "@/components/ui/Avatar"; +import { Text } from "@/components/ui/Text"; + +interface UserProfileHeaderProps { + image?: string | null; + name?: string | null; + email?: string | null; +} + +export function UserProfileHeader({ + image, + name, + email, +}: UserProfileHeaderProps) { + return ( + <View className="w-full items-center gap-2 py-6"> + <Avatar image={image} name={name} size={88} /> + <View className="items-center gap-1"> + <Text className="text-xl font-semibold">{name || "User"}</Text> + {email && ( + <Text className="text-sm text-muted-foreground">{email}</Text> + )} + </View> + </View> + ); +} |
