-
Notifications
You must be signed in to change notification settings - Fork 97
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
chore: update discover dapp and dapp filter styles #5625
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5625 +/- ##
==========================================
- Coverage 86.72% 86.70% -0.02%
==========================================
Files 773 773
Lines 31567 31562 -5
Branches 5456 5454 -2
==========================================
- Hits 27375 27366 -9
- Misses 3963 3967 +4
Partials 229 229
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Thank you for this, and sorry that this slipped through!! This is a lot cleaner, and the approach to styling the DappCard
makes much more sense here 😅
<Touchable | ||
style={[styles.pressableCard, cardContentContainerStyle]} | ||
onPress={onPressDapp} | ||
borderRadius={showBorder ? 8 : undefined} |
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.
nit: can 8 be Spacing.Smallest8
?
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 prefer not to 🙈 i agree that we prefer variables over hardcoded numbers so that we are restricted to certain consistent values + it's easier to make a global change for the values, but i think borders and spaces may not want to use the same variables...it can be a surprise if a change to "Spacing" values also changes rounded corners. i've always wanted to create a separate style enum for borders but never got round to it 😅
Description
Context and design.
This PR only has styles changes. Also fixes the dapp filters appearing on more than 1 row. This PR breaks the dapp rankings styles but that is disabled and earmarked for deletion anyway.
Test plan
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-09.at.12.16.11.mp4
Related issues
n/a
Backwards compatibility
yes
Network scalability
If a new NetworkId and/or Network are added in the future, the changes in this PR will: