Skip to content

Commit

Permalink
fix: scrolling now doesnt auto select a user
Browse files Browse the repository at this point in the history
  • Loading branch information
MattCMcCoy committed Feb 24, 2024
1 parent e3bd14e commit d61099f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/components/profile/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ export function Group({
(roles.find((role) => role.role === Role.PATIENT)?.user_id ?? '')
)}
renderItem={({ item, index }) => (
<Pressable key={index} onTouchEnd={() => setActiveUser(item.user_id)}>
<Pressable
key={index}
onTouchEnd={(e) => {
e.stopPropagation();
setActiveUser(item.user_id);
}}
>
<View className="items-center px-2">
<View className="z-10 h-20 w-20 rounded-full border border-carewallet-black bg-carewallet-white" />
<Text className="text-center">{item.first_name}</Text>
Expand Down

0 comments on commit d61099f

Please sign in to comment.