Skip to content

Commit

Permalink
wrap profile stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Feb 22, 2024
1 parent 3098271 commit 1c6bffd
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions apps/expo/src/components/screens/profile/profile-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,25 +444,31 @@ export const ProfileInfo = ({ profile, backButton }: Props) => {
</Text>
</View>
</View>
<View className="mt-3 flex-row" pointerEvents="box-none">
<TouchableOpacity onPress={() => openFollowers(profile.did)}>
<View className="mt-1 flex-row flex-wrap" pointerEvents="box-none">
<TouchableOpacity
onPress={() => openFollowers(profile.did)}
className="mr-4 mt-1"
>
<Text>
<Trans>
<Text className="font-bold">{profile.followersCount}</Text>{" "}
Followers
</Trans>
</Text>
</TouchableOpacity>
<TouchableOpacity onPress={() => openFollows(profile.did)}>
<Text className="ml-4">
<TouchableOpacity
onPress={() => openFollows(profile.did)}
className="mr-4 mt-1"
>
<Text>
<Trans>
<Text className="font-bold">{profile.followsCount}</Text>{" "}
Following
</Trans>
</Text>
</TouchableOpacity>
<View pointerEvents="none">
<Text className="ml-4">
<View pointerEvents="none" className="mt-1">
<Text>
<Trans>
<Text className="font-bold">{profile.postsCount ?? 0}</Text>{" "}
Posts
Expand Down

0 comments on commit 1c6bffd

Please # to comment.