Skip to content

Commit

Permalink
actually address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters committed Jan 28, 2025
1 parent a6aacfd commit a14b5e3
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions wormhole-connect/src/views/v2/Bridge/AssetPicker/ChainList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import List from '@mui/material/List';
import ListItemButton from '@mui/material/ListItemButton';
import ListItemIcon from '@mui/material/ListItemIcon';
import Stack from '@mui/material/Stack';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography';

import ChainIcon from 'icons/ChainIcons';
Expand Down Expand Up @@ -114,22 +115,23 @@ const ChainList = (props: Props) => {
return (
<List component={Stack} direction="row">
{topChains.map((chain: ChainConfig) => (
<ListItemButton
key={chain.key}
selected={selectedChainConfig?.key === chain.key}
className={classes.chainButton}
onClick={() => onChainSelect(chain.key)}
>
<ChainIcon icon={chain.icon} />
<Typography
fontSize="12px"
lineHeight="12px"
marginTop="8px"
whiteSpace="nowrap"
<Tooltip key={chain.key} title={chain.displayName}>
<ListItemButton
selected={selectedChainConfig?.key === chain.key}
className={classes.chainButton}
onClick={() => onChainSelect(chain.key)}
>
{chain.symbol}
</Typography>
</ListItemButton>
<ChainIcon icon={chain.icon} />
<Typography
fontSize="12px"
lineHeight="12px"
marginTop="8px"
whiteSpace="nowrap"
>
{chain.symbol}
</Typography>
</ListItemButton>
</Tooltip>
))}
<ListItemButton
className={classes.chainButton}
Expand Down

0 comments on commit a14b5e3

Please sign in to comment.