mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-23 07:14:21 +00:00
🔧 Make button icons spin while the resource is busy
This commit is contained in:
parent
f7ad614323
commit
1a689d3333
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