@momo-kits/avatar 0.92.7 → 0.92.8-beta.10

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.
Files changed (2) hide show
  1. package/index.tsx +6 -6
  2. package/package.json +1 -1
package/index.tsx CHANGED
@@ -81,12 +81,6 @@ const Avatar: FC<AvatarProps> = ({
81
81
  borderRadius: scaleSize(borderRadius),
82
82
  },
83
83
  ]}>
84
- {shouldShowIconTop && (
85
- <Image
86
- source={{uri: logo}}
87
- style={[styles.icon, supportIconSize, {top: -1, right: -1}]}
88
- />
89
- )}
90
84
  {!!name && !image && (
91
85
  <Text color={Colors.pink_03} typography={'description_xs_regular'}>
92
86
  {getShortName(name)}
@@ -106,6 +100,12 @@ const Avatar: FC<AvatarProps> = ({
106
100
  ]}
107
101
  />
108
102
  )}
103
+ {shouldShowIconTop && (
104
+ <Image
105
+ source={{uri: logo}}
106
+ style={[styles.icon, supportIconSize, {top: -1, right: -1}]}
107
+ />
108
+ )}
109
109
  {shouldShowIconBottom && (
110
110
  <Image
111
111
  source={{uri: iconSupport}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/avatar",
3
- "version": "0.92.7",
3
+ "version": "0.92.8-beta.10",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {