-
Notifications
You must be signed in to change notification settings - Fork 400
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
[CORE-652] Add chain icon in SingleNetworkSelector + other chain icon related fixes #5794
[CORE-652] Add chain icon in SingleNetworkSelector + other chain icon related fixes #5794
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5794 +/- ##
=======================================
Coverage 53.20% 53.20%
=======================================
Files 1101 1101
Lines 59100 59100
Branches 4817 4817
=======================================
Hits 31447 31447
Misses 26936 26936
Partials 717 717
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
46a959d
to
8ad0c17
Compare
@@ -196,7 +196,7 @@ export const NetworkSelectorButton: React.FC<NetworkSelectorButtonProps> = ({ | |||
}); | |||
}} | |||
> | |||
<ChainIcon ipfsSrc={chain?.icon?.url} size={20} /> | |||
<ChainIcon ipfsSrc={chain?.icon?.url} className="size-5" /> |
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.
btw this is one of the things we should switch to using the react sdk components for!
Merge activity
|
… related fixes (#5794) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on updating the `ChainIcon` component's implementation and its usage across various files, specifically changing the way the icon's size is handled and integrating a new fallback mechanism. ### Detailed summary - Added `decoding="async"` to an `Image` component. - Replaced `size` prop with `className` for `ChainIcon` across multiple components, adjusting sizes accordingly. - Updated `ChainIcon` implementation to use a new `Img` component. - Introduced a fallback image for `ChainIcon` in case of loading failures. - Added stories for `MultiNetworkSelector` and `SingleNetworkSelector` components. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
8ad0c17
to
00b6c2e
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR primarily focuses on updating the
ChainIcon
component and its usage across various files. The changes include modifying how icons are rendered and adjusting their sizes using class names instead of size props.Detailed summary
decoding="async"
to an image component.size
prop withclassName
forChainIcon
in multiple components.fallbackChainIcon
for better handling of missing icons.ChainIcon
implementation to use theImg
component.