Skip to content

Commit

Permalink
CP-9622: Set the default background color of the token logo to white. (
Browse files Browse the repository at this point in the history
  • Loading branch information
onghwan authored Dec 16, 2024
1 parent 58f883d commit 839fe2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/core-mobile/app/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const AvatarBase: FC<AvatarBaseProps> = ({
onLoad={() => setFailedToLoad(false)}
onError={() => setFailedToLoad(true)}
testID="avatar__logo_avatar"
contentFit="contain"
/>
)
}
Expand All @@ -129,6 +130,7 @@ interface TokenAvatarProps {
logoUri: string | undefined
size?: number
testID?: string
backgroundColor?: string
}

const TokenAvatar: FC<TokenAvatarProps> = props => {
Expand All @@ -138,6 +140,7 @@ const TokenAvatar: FC<TokenAvatarProps> = props => {
title={props.name}
tokenSymbol={props.symbol}
testID={props.symbol}
backgroundColor={props.backgroundColor}
/>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const TokenDetail: FC = () => {
symbol={symbol}
logoUri={logoUri}
size={48}
backgroundColor="white"
/>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ const LeftComponent = ({
<Space x={9} />
</>
)}
<Avatar.Custom
<Avatar.Token
name={name}
symbol={symbol}
logoUri={logoUri}
size={32}
testID={`${name}`}
backgroundColor="white"
/>
</View>
)
Expand Down

0 comments on commit 839fe2a

Please sign in to comment.