pancake-frontend
pancake-frontend copied to clipboard
fix: Swap route breakdown don't show token logos for some tokens
PR-Codex overview
This PR focuses on improving the UI components in the Swap
and RoutesBreakdown
views by streamlining JSX structures, enhancing alignment, and integrating new hooks for token management.
Detailed summary
- Simplified JSX structure in
PricingAndSlippage.tsx
. - Changed alignment from
alignItems: 'center'
toalignItems: 'flex-end'
inRoutesBreakdown.tsx
. - Imported
useToken
hook inRouteDisplayModal.tsx
for better token handling. - Updated
CurrencyLogo
components to useinputToken
andoutputToken
. - Refined tooltip text handling in
PairNode
andAdvancedSwapDetails
. - Streamlined modal structures and removed unnecessary fragments in
AdvancedSwapDetails
.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}