Skip to content

Commit

Permalink
feat: improve beeps list in app
Browse files Browse the repository at this point in the history
  • Loading branch information
bnussman committed Oct 20, 2024
1 parent dadfb58 commit 58bc598
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions app/components/Beep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,22 @@ export function Beep({ item }: Props) {
<Text weight="bold">Group size</Text>
<Text>{item.groupSize}</Text>
</View>
<View className="flex flex-row justify-between gap-12">
<Text weight="bold">Your Rating</Text>
<Text>{myRating ? printStars(myRating.stars) : "N/A"}</Text>
</View>
<View className="flex flex-row justify-between gap-12">
<Text weight="bold">{otherUser.first}'s Rating</Text>
<Text>
{otherUsersRating ? printStars(otherUsersRating.stars) : "N/A"}
</Text>
</View>
{item.status === "complete" && (
<>
<View className="flex flex-row justify-between gap-12">
<Text weight="bold">Your Rating</Text>
<Text>{myRating ? printStars(myRating.stars) : "N/A"}</Text>
</View>
<View className="flex flex-row justify-between gap-12">
<Text weight="bold">{otherUser.first}'s Rating</Text>
<Text>
{otherUsersRating
? printStars(otherUsersRating.stars)
: "N/A"}
</Text>
</View>
</>
)}
</View>
</Card>
</ContextMenu.Trigger>
Expand Down

0 comments on commit 58bc598

Please sign in to comment.