Skip to content

Commit

Permalink
fixed: ui issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zzggo committed Dec 6, 2024
1 parent 2ac1d31 commit aa35387
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
10 changes: 5 additions & 5 deletions src/background/controller/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1595,18 +1595,18 @@ export class WalletController extends BaseController {
transformedArray = [
{
id: 0,
name: 'flow',
name: 'Koala',
chain_id: network,
icon: 'placeholder',
color: 'placeholder',
icon: '🐨',
color: '#fff',
blockchain: [
{
id: 0,
name: 'Flow',
chain_id: network,
address: '0x00000000',
address: '',
coins: ['flow'],
icon: '',
icon: '🐨',
},
],
},
Expand Down
29 changes: 15 additions & 14 deletions src/ui/views/Wallet/Coinlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,21 @@ const CoinList = ({ data, ableFt, isActive, childType, coinLoading }) => {
{props.change === null ? '-' : '$'}
{props.price}
</Typography>

<Typography
variant="body1"
sx={{
fontSize: 12,
fontWeight: '500',
textAlign: 'start',
color: props.change >= 0 ? 'text.increase' : 'text.decrease',
}}
>
{props.change === null ? '' : props.change >= 0 ? '+' : ''}
{props.change}
{props.change !== null ? '%' : ''}
</Typography>
{props.change !== 0 && (
<Typography
variant="body1"
sx={{
fontSize: 12,
fontWeight: '500',
textAlign: 'start',
color: props.change >= 0 ? 'text.increase' : 'text.decrease',
}}
>
{props.change === null ? '' : props.change >= 0 ? '+' : ''}
{props.change}
{props.change !== null ? '%' : ''}
</Typography>
)}
</Box>
) : (
<Box
Expand Down

0 comments on commit aa35387

Please sign in to comment.