@momo-kits/avatar 0.79.6 → 0.80.1
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/index.tsx +4 -7
- package/package.json +1 -1
package/index.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import {View} from 'react-native';
|
|
|
3
3
|
import {AvatarProps} from './types';
|
|
4
4
|
import {
|
|
5
5
|
ApplicationContext,
|
|
6
|
+
Colors,
|
|
6
7
|
Icon,
|
|
7
8
|
Image,
|
|
8
9
|
Spacing,
|
|
@@ -86,7 +87,7 @@ const Avatar: FC<AvatarProps> = ({
|
|
|
86
87
|
{
|
|
87
88
|
width: size,
|
|
88
89
|
height: size,
|
|
89
|
-
backgroundColor:
|
|
90
|
+
backgroundColor: Colors.pink_09,
|
|
90
91
|
borderColor: theme.colors.border.default,
|
|
91
92
|
borderRadius,
|
|
92
93
|
},
|
|
@@ -98,16 +99,12 @@ const Avatar: FC<AvatarProps> = ({
|
|
|
98
99
|
/>
|
|
99
100
|
)}
|
|
100
101
|
{!!name && !image && (
|
|
101
|
-
<Text color={
|
|
102
|
+
<Text color={Colors.pink_03} typography={'description_xs'}>
|
|
102
103
|
{getShortName(name)}
|
|
103
104
|
</Text>
|
|
104
105
|
)}
|
|
105
106
|
{!name && !image && (
|
|
106
|
-
<Icon
|
|
107
|
-
size={iconSize}
|
|
108
|
-
source={'basic_person'}
|
|
109
|
-
color={theme.colors.primary}
|
|
110
|
-
/>
|
|
107
|
+
<Icon size={iconSize} source={'basic_person'} color={Colors.pink_03} />
|
|
111
108
|
)}
|
|
112
109
|
{!!image && (
|
|
113
110
|
<Image
|