Skip to content

Commit

Permalink
feat: optimization swap style
Browse files Browse the repository at this point in the history
  • Loading branch information
junjieit committed Sep 30, 2024
1 parent 73213b5 commit e62872f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/dodoex-widgets/src/components/Swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,9 @@ export function Swap({
>
<TokenLogo
token={fromToken}
sx={{
width: 16,
height: 16,
mr: 6,
}}
width={16}
height={16}
marginRight={6}
chainId={fromToken.chainId}
/>
{`${formatTokenAmountNumber({
Expand All @@ -827,11 +825,9 @@ export function Swap({
/>
<TokenLogo
token={toToken}
sx={{
width: 16,
height: 16,
mr: 6,
}}
width={16}
height={16}
marginRight={6}
chainId={toToken.chainId}
/>
{`${formatTokenAmountNumber({
Expand Down
1 change: 1 addition & 0 deletions packages/dodoex-widgets/src/components/TokenLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default function TokenLogo({
border: 'solid 1px',
borderColor: 'border.main',
borderRadius: '50%',
flexShrink: 0,
...(showChain
? {}
: {
Expand Down

0 comments on commit e62872f

Please sign in to comment.