-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix rendering the correct src20 image, closes LEA-1993 #6063
Conversation
a15c45c
to
3727275
Compare
cfe5baf
to
cbfd89b
Compare
cbfd89b
to
d300bf9
Compare
I see now. |
const [isLoading, setIsLoading] = useState(true); | ||
const [width, setWidth] = useState(0); | ||
|
||
if (isError) return <Src20AvatarIcon width="xl" />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you want to resize the icon here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camerow I would move this file out of collectibles
bc being used in the asset list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it seems to make no difference if I resize it or not (perhaps that's the default size).
I can move it, should I move to a new /components/src20/src20-image.tsx
or just put it in the src20-tokens-asset-list
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the location, let me know if it looks ok to you.
d300bf9
to
0a41114
Compare
Specifically fixes the layout of the SRC-20 tokens in this list (before / after use different tokens, but the change is applied to any SRC-20)
Before:
After: