-
-
Notifications
You must be signed in to change notification settings - Fork 283
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(suite): TradingFormOffer small polishing #17630
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe changes update several trading-related components by modifying their layout and styling. The TradingFooter component has been streamlined through the removal of an extra wrapper component and an adjustment of margin spacing, with additional typography rules applied to link elements. The TradingProvidedByInvity component was restructured to use a Text component and a Row layout for alignment instead of the previously used styled wrapper. The TradingFormOffer component received layout adjustments by incorporating a new wrapping div and setting specific column properties for improved content alignment. Additionally, the TradingFormInputLoader component, which rendered a loading spinner, was removed entirely. No modifications were made to the exported or public entities of these components. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (7)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Looks good (I mean like the UI)
<div> | ||
<Column gap={spacings.xs} data-testid="@trading/best-offer"> | ||
<Translation id={amountLabels.offerLabel} /> | ||
{shouldDisplayFiatAmount ? ( |
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, I think <If><Else>
would be readable, I'll add it.
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.
const WrapperBorder = styled.div` | ||
padding-top: ${spacingsPx.lg}; | ||
border-top: 1px solid ${({ theme }) => theme.borderElevation1}; | ||
margin-top: ${spacingsPx.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.
Could the Row
component replace this custom style?
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.
Or in this PR be replaced with other custom styles? Will you have some time for that? 🫣🙏
const WrapperBorder = styled.div` | ||
padding-top: ${spacingsPx.lg}; | ||
border-top: 1px solid ${({ theme }) => theme.borderElevation1}; | ||
margin-top: ${spacingsPx.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.
Margin top shouldn't be in this context, imo, but in the parent component where the layout composition occurs, via column or something like that.
Description
don't forget:

Related Issue
Resolve
Screenshots:
before
after