Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const createStyles = (colors: Colors) =>
badge: {
marginTop: 8,
},
assetNameContainer: {
flexDirection: 'row',
alignItems: 'center',
},
Comment thread
Matt561 marked this conversation as resolved.
assetName: {
flexDirection: 'row',
gap: 8,
Expand Down Expand Up @@ -404,11 +408,17 @@ export const TokenListItem = React.memo(
* The reason for this is that the wallet_watchAsset doesn't return the name
* more info: https://docs.metamask.io/guide/rpc-api.html#wallet-watchasset
*/}
<View style={styles.assetName}>
<Text variant={TextVariant.BodyMDMedium} numberOfLines={1}>
{asset.name || asset.symbol}
</Text>
{label && <Tag label={label} testID={ACCOUNT_TYPE_LABEL_TEST_ID} />}
<View style={styles.assetNameContainer}>
<View style={styles.assetName}>
<Text variant={TextVariant.BodyMDMedium} numberOfLines={1}>
{asset.name || asset.symbol}
</Text>
{label && (
<Tag label={label} testID={ACCOUNT_TYPE_LABEL_TEST_ID} />
)}
</View>

{renderEarnCta()}
</View>
<View style={styles.percentageChange}>
{
Expand All @@ -424,7 +434,6 @@ export const TokenListItem = React.memo(
{isStockToken(asset as BridgeToken) && (
<StockBadge style={styles.stockBadgeWrapper} token={asset} />
)}
{renderEarnCta()}
</View>
</View>
<ScamWarningIcon
Expand Down
Loading