more qol
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 32s

This commit is contained in:
2026-01-30 17:53:55 -05:00
parent 7c674b07c6
commit 480ad66376
2 changed files with 6 additions and 5 deletions

View File

@@ -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>