friend management QOL improvements
Build Images and Deploy / Update-PROD-Stack (push) Successful in 33s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 33s
This commit is contained in:
@@ -276,8 +276,15 @@ export default function Friends() {
|
||||
<div style={{ fontWeight: 500 }}>{friend.username}</div>
|
||||
<div style={{ fontSize: '0.875rem', color: 'var(--text-muted)' }}>{friend.email}</div>
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: '1rem', alignItems: 'center' }}>
|
||||
<div style={{ display: 'flex', gap: '0.5rem', alignItems: 'center' }}>
|
||||
<div style={{ color: 'var(--primary)' }}>{friend.total_points} points</div>
|
||||
<button
|
||||
className="btn btn-primary btn-sm"
|
||||
onClick={() => handleSendRequest(friend.id)}
|
||||
disabled={sending === friend.id}
|
||||
>
|
||||
{sending === friend.id ? 'Sending...' : 'Add Friend'}
|
||||
</button>
|
||||
<button
|
||||
className="btn btn-danger btn-sm"
|
||||
onClick={() => handleRemoveFriend(friend.id, friend.username)}
|
||||
|
||||
Reference in New Issue
Block a user