pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

fix: Swap route breakdown don't show token logos for some tokens

Open memoyil opened this issue 4 months ago • 2 comments


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' to alignItems: 'flex-end' in RoutesBreakdown.tsx.
  • Imported useToken hook in RouteDisplayModal.tsx for better token handling.
  • Updated CurrencyLogo components to use inputToken and outputToken.
  • Refined tooltip text handling in PairNode and AdvancedSwapDetails.
  • Streamlined modal structures and removed unnecessary fragments in AdvancedSwapDetails.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Oct 27 '24 08:10 memoyil