1
Fork 0
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:
Steffo 2021-10-10 17:12:53 +02:00
parent 31fcc78049
commit e1a9af4cff
2 changed files with 2 additions and 2 deletions

View file

@ -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}/>&nbsp;Join <FontAwesomeIcon icon={faUserPlus} pulse={resource.busy}/>&nbsp;Join
</Button> </Button>
) )
} }

View file

@ -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}/>&nbsp;Leave <FontAwesomeIcon icon={faUserMinus} pulse={resource.busy}/>&nbsp;Leave
</Button> </Button>
) )
} }