Skip to content

Commit

Permalink
Make settings layout mobile friendly. Make avatar clickable (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinaenache authored Jun 5, 2024
1 parent c5092dc commit 717f0ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/screens/SettingsScreens/AccountSettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { SettingsLayout } from "./components/SettingsLayout";
import { useMemo, useState } from "react";
import { useUser } from "../../hooks";
import { ActivityIndicator, View } from "react-native";
import { ActivityIndicator, Pressable, View } from "react-native";
import * as ImagePicker from "expo-image-picker";
import { useScreenInfo } from "../../hooks/useScreenInfo";
import { useUpdateProfilePicture } from "../../hooks/useUpdateProfilePicture";
Expand Down Expand Up @@ -50,10 +50,12 @@ const SettingItem = ({
(isImageLoading ? (
<ActivityIndicator />
) : (
<Avatar size={84} userImage={imageUrl} />
<Pressable onPress={onButtonPress}>
<Avatar size={84} userImage={imageUrl} />
</Pressable>
))}
</View>
<View className="text-wrap flex">
<View className="text-wrap shrink">
<StyledText weight={600} xl2>
{title}
</StyledText>
Expand Down

0 comments on commit 717f0ae

Please sign in to comment.