more qol
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 32s
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 32s
This commit is contained in:
@@ -281,12 +281,12 @@ export default function Friends() {
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: '0.5rem', alignItems: 'center', flexShrink: 0, flexWrap: 'nowrap' }}>
|
||||
<button
|
||||
className="btn btn-primary btn-sm"
|
||||
className={`btn btn-sm ${friend.friendship_status === 'pending' ? 'btn-secondary' : 'btn-primary'}`}
|
||||
onClick={() => handleSendRequest(friend.id)}
|
||||
disabled={sending === friend.id}
|
||||
disabled={sending === friend.id || friend.friendship_status === 'pending'}
|
||||
style={{ flexShrink: 0 }}
|
||||
>
|
||||
{sending === friend.id ? 'Sending...' : 'Add Friend'}
|
||||
{sending === friend.id ? 'Sending...' : friend.friendship_status === 'pending' ? 'Pending' : 'Add Friend'}
|
||||
</button>
|
||||
<div style={{ color: 'var(--primary)', whiteSpace: 'nowrap' }}>{friend.total_points} points</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user