-
Notifications
You must be signed in to change notification settings - Fork 198
fix: yields polish one #11742
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: yields polish one #11742
Conversation
📝 WalkthroughWalkthroughUpdates Card dark mode styling for the elevated variant and refactors multiple Yields components to use plain Card instead of the dashboard variant, simplifying heading styles and restructuring layout patterns across YieldInfoCard, YieldProviderInfo, and YieldStats components. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/pages/Yields/components/YieldAvailableToDeposit.tsx (1)
143-182: Align the empty-state Card variant with the updated default Card.
The non-empty state now uses the default Card styling, but the empty state still usesvariant='dashboard', creating an inconsistent look within the same component.Suggested fix
- <Card variant='dashboard'> + <Card>
🤖 Fix all issues with AI agents
In `@src/pages/Yields/components/YieldPositionCard.tsx`:
- Around line 431-436: The connect-wallet branch in YieldPositionCard uses a
Card with variant='dashboard' causing inconsistent layout; update the JSX branch
that renders when !accountId (inside the YieldPositionCard component) to use the
default Card styling by removing or changing the variant='dashboard' prop so it
matches the other main and loading branches which render the plain Card.
gomesalexandre
left a comment
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.
Constrained changes look good. No regression spotted on desktop nor mobile in Yield nor cards in app.
https://jam.dev/c/6723b2d3-3345-4b63-b4fc-468ea300cc1f
Description
elevatedI will adjust the styling further in a follow up PR for mobile. Keeping this one small and targeted.
Issue (if applicable)
closes #
Risk
low risk
Testing
Engineering
Operations
Screenshots (if applicable)
Summary by CodeRabbit
New Features
Style
✏️ Tip: You can customize this high-level summary in your review settings.