Skip to content

Commit

Permalink
Add label to favorites button in ITwinTile component
Browse files Browse the repository at this point in the history
  • Loading branch information
arome committed Nov 22, 2024
1 parent 0c4c9e1 commit 4f8a36e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const ITwinTile = ({
}
rightIcon={
<IconButton
label={isFavorite ? "Remove from favorites" : "Add to favorites"}
onClick={async () => {
isFavorite
? await removeFromFavorites?.(iTwin.id)
Expand Down

0 comments on commit 4f8a36e

Please sign in to comment.