@fto-consult/expo-ui 8.78.2 → 8.78.3
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.
@@ -50,7 +50,7 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,renderedOnAppBar
|
|
50
50
|
if(withLabel === undefined){
|
51
51
|
withLabel = theme.showProfilAvatarOnDrawer;
|
52
52
|
}
|
53
|
-
|
53
|
+
withLabel = withLabel !== false ? true : false;
|
54
54
|
props.src = u.avatar;
|
55
55
|
size = defaultNumber(size,!withLabel?40:40);
|
56
56
|
const userPseudo = Auth.getUserPseudo();
|
@@ -111,7 +111,6 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,renderedOnAppBar
|
|
111
111
|
onPress : signOut,
|
112
112
|
},
|
113
113
|
];
|
114
|
-
|
115
114
|
const onChangeAvatar = ({dataURL})=>{
|
116
115
|
if(u.avatar === dataURL) {
|
117
116
|
return;
|
@@ -135,7 +134,7 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,renderedOnAppBar
|
|
135
134
|
style : [styles.icon,withLabel=== false && {color:theme.colors.onPrimary},customChevronIconProps.style],
|
136
135
|
}
|
137
136
|
if(!withLabel){
|
138
|
-
return <
|
137
|
+
return <Pressable testID={testID+"_AvatarContainer"} style={[theme.styles.row,theme.styles.alignItemsCenter,theme.styles.pr1]}>
|
139
138
|
<Image
|
140
139
|
pickImageProps = {{quality:0.4}}
|
141
140
|
{...props}
|
@@ -154,7 +153,7 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,renderedOnAppBar
|
|
154
153
|
{...aProps}
|
155
154
|
style = {[chevronIconProps.style,{marginLeft:-5}]}
|
156
155
|
/>
|
157
|
-
</
|
156
|
+
</Pressable>
|
158
157
|
}
|
159
158
|
return <Pressable
|
160
159
|
testID={testID+"_ProfilAvatarContainer"}
|