mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: get friends event
This commit is contained in:
parent
909e288bec
commit
d350aa950d
5 changed files with 44 additions and 9 deletions
|
|
@ -342,7 +342,7 @@ export function UserContent({
|
|||
</div>
|
||||
|
||||
{(isMe ||
|
||||
(userProfile.friends && userProfile.friends.length > 0)) && (
|
||||
(userProfile.friends && userProfile.friends.totalFriends > 0)) && (
|
||||
<div className={styles.friendsSection}>
|
||||
<button
|
||||
className={styles.friendsSectionHeader}
|
||||
|
|
@ -358,7 +358,7 @@ export function UserContent({
|
|||
}}
|
||||
/>
|
||||
<h3 style={{ fontWeight: "400" }}>
|
||||
{userProfile.friends.length}
|
||||
{userProfile.friends.totalFriends}
|
||||
</h3>
|
||||
</button>
|
||||
|
||||
|
|
@ -369,7 +369,7 @@ export function UserContent({
|
|||
gap: `${SPACING_UNIT}px`,
|
||||
}}
|
||||
>
|
||||
{userProfile.friends.map((friend) => {
|
||||
{userProfile.friends.friends.map((friend) => {
|
||||
return (
|
||||
<button
|
||||
key={friend.id}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue