Skip to content

Commit

Permalink
fix: temp ci
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Oct 17, 2024
1 parent ee61c3e commit 562c769
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { useSelector } from 'react-redux';
import classnames from 'classnames';
import {
getCurrentCurrency,
getSelectedAccountCachedBalance,
Expand Down Expand Up @@ -74,6 +75,7 @@ export default function AssetList({
? BackgroundColor.primaryMuted
: BackgroundColor.transparent
}
className="multichain-asset-picker-list-items"
data-testid="asset-list-item"
onClick={() => {
if (isDisabled) {
Expand All @@ -89,13 +91,20 @@ export default function AssetList({
flexWrap={FlexWrap.NoWrap}
alignItems={AlignItems.center}
>
<Box marginInlineStart={2}>
{isSelected ? (
<Box
borderRadius={BorderRadius.pill}
backgroundColor={BackgroundColor.primaryDefault}
/>
) : null}
{isSelected ? (
<Box
className="multichain-asset-picker-list-items__selected-indicator"
borderRadius={BorderRadius.pill}
backgroundColor={BackgroundColor.primaryDefault}
/>
) : null}
<Box
marginInlineStart={2}
className={classnames('multichain-asset-picker-list-items', {
'multichain-asset-picker-list-items--selected': isSelected,
'multichain-asset-picker-list-items--disabled': isDisabled,
})}
>
{token.type === AssetType.native ? (
<TokenListItem
title={token.symbol}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
vertical-align: unset;
}

.multichain-asset-picker-list-item {
.multichain-asset-picker-list-items {
position: relative;
cursor: pointer;
overflow-y: auto;
max-height: 50vh;

&:not(.multichain-asset-picker-list-item--selected) {
&:not(.multichain-asset-picker-list-items--selected) {
&:hover,
&:focus-within {
background: var(--color-background-default-hover);
Expand Down
1 change: 0 additions & 1 deletion ui/components/multichain/nft-item/nft-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
BadgeWrapper,
BadgeWrapperAnchorElementShape,
Box,
Text,
} from '../../component-library';
import {
BackgroundColor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export const TokenListItem = ({
src={currentNetwork?.rpcPrefs?.imageUrl}
backgroundColor={testNetworkBackgroundColor}
className="multichain-token-list-item__badge__avatar-network"
s
/>
}
marginRight={4}
Expand Down

0 comments on commit 562c769

Please sign in to comment.