mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +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 (
|
return (
|
||||||
<Button disabled={!canJoin} onClick={doJoin} bluelibClassNames={resource.busy ? "color-yellow" : ""}>
|
<Button disabled={!canJoin} onClick={doJoin} bluelibClassNames={resource.busy ? "color-yellow" : ""}>
|
||||||
<FontAwesomeIcon icon={faUserPlus}/> Join
|
<FontAwesomeIcon icon={faUserPlus} pulse={resource.busy}/> Join
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export function GroupLeaveButton({resource}: GroupLeaveButtonProps): JSX.Element
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button disabled={!canLeave} onClick={doLeave} bluelibClassNames={resource.busy ? "color-yellow" : ""}>
|
<Button disabled={!canLeave} onClick={doLeave} bluelibClassNames={resource.busy ? "color-yellow" : ""}>
|
||||||
<FontAwesomeIcon icon={faUserMinus}/> Leave
|
<FontAwesomeIcon icon={faUserMinus} pulse={resource.busy}/> Leave
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue