@rango-dev/ui 0.15.1-next.21 → 0.15.1-next.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.15.1-next.21",
3
+ "version": "0.15.1-next.22",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -31,7 +31,7 @@ export const ChainToken: React.FC<PropTypes> = (props) => {
31
31
  size={tokenChainSizeMap[size].token}
32
32
  src={tokenImage}
33
33
  type="circular"
34
- {...(useAsPlaceholder && { useAsPlaceholder })}
34
+ {...((useAsPlaceholder || !tokenImage) && { useAsPlaceholder: true })}
35
35
  />
36
36
  )}
37
37
  <ChainImageContainer size={size}>
@@ -46,8 +46,8 @@ export const ChainToken: React.FC<PropTypes> = (props) => {
46
46
  size={tokenChainSizeMap[size].chain}
47
47
  src={chainImage}
48
48
  type="circular"
49
- {...(useAsPlaceholder && {
50
- useAsPlaceholder,
49
+ {...((useAsPlaceholder || !chainImage) && {
50
+ useAsPlaceholder: true,
51
51
  backgroundColor: '$secondary300',
52
52
  })}
53
53
  />
@@ -22,7 +22,7 @@ export function TokenSection(props: TokenSectionProps) {
22
22
  <TokenSectionContainer>
23
23
  <ChainToken
24
24
  size="large"
25
- useAsPlaceholder={error || (!loading && (!chainImage || !tokenImage))}
25
+ useAsPlaceholder={error}
26
26
  chainImage={chainImage}
27
27
  tokenImage={tokenImage}
28
28
  loading={loading}