Skip to content

Commit

Permalink
fix: styling and add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz committed Nov 13, 2023
1 parent 6b35929 commit 6f88baf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-humans-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Fixed a bug where the spinner icon was still spinning when loading state wasn't 'true' in the <Avatar /> component
5 changes: 0 additions & 5 deletions packages/rainbowkit/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ export function Avatar({ address, imageUrl, loading, size }: AvatarProps) {
display="flex"
height="full"
position="absolute"
style={{
opacity: loading ? 1 : 0,
transition: loading ? '0.6s ease' : '0.2s ease',
transitionDelay: loading ? '.05s' : undefined,
}}
width="full"
>
<SpinnerIcon height="100%" width="100%" />
Expand Down

0 comments on commit 6f88baf

Please sign in to comment.