mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Make button icons spin while the resource is busy
This commit is contained in:
parent
31fcc78049
commit
e1a9af4cff
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ export function GroupJoinButton({resource}: GroupJoinButtonProps): JSX.Element |
|
|||
|
||||
return (
|
||||
<Button disabled={!canJoin} onClick={doJoin} bluelibClassNames={resource.busy ? "color-yellow" : ""}>
|
||||
<FontAwesomeIcon icon={faUserPlus}/> Join
|
||||
<FontAwesomeIcon icon={faUserPlus} pulse={resource.busy}/> Join
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ export function GroupLeaveButton({resource}: GroupLeaveButtonProps): JSX.Element
|
|||
|
||||
return (
|
||||
<Button disabled={!canLeave} onClick={doLeave} bluelibClassNames={resource.busy ? "color-yellow" : ""}>
|
||||
<FontAwesomeIcon icon={faUserMinus}/> Leave
|
||||
<FontAwesomeIcon icon={faUserMinus} pulse={resource.busy}/> Leave
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue