@momo-kits/avatar 0.76.1-beta.2 → 0.77.2

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 +2 -1
  2. package/package.json +1 -1
package/index.tsx CHANGED
@@ -70,6 +70,7 @@ const Avatar: FC<AvatarProps> = ({
70
70
 
71
71
  const iconPosition = getIconPosition();
72
72
  const iconSize = getIconSize();
73
+ const shouldShowIcon = size !== 24 && showIconMomo && rounded;
73
74
 
74
75
  return (
75
76
  <View
@@ -83,7 +84,7 @@ const Avatar: FC<AvatarProps> = ({
83
84
  borderRadius,
84
85
  },
85
86
  ]}>
86
- {size !== 24 && showIconMomo && (
87
+ {shouldShowIcon && (
87
88
  <Image
88
89
  source={{uri: logo}}
89
90
  style={[iconStyle, {top: iconPosition, right: iconPosition}]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/avatar",
3
- "version": "0.76.1-beta.2",
3
+ "version": "0.77.2",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {