@fto-consult/expo-ui 6.15.0 → 6.15.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/package.json
CHANGED
|
@@ -7,7 +7,6 @@ import { screenName } from "$escreens/Auth/utils";
|
|
|
7
7
|
import Image from "$ecomponents/Image";
|
|
8
8
|
import { StyleSheet,View,Pressable} from "react-native";
|
|
9
9
|
import avatarProps from "$eauth/avatarProps";
|
|
10
|
-
import Button from "$ecomponents/Button";
|
|
11
10
|
import Label from "$ecomponents/Label";
|
|
12
11
|
import Icon from "$ecomponents/Icon";
|
|
13
12
|
import {navigate} from "$cnavigation";
|
|
@@ -17,6 +16,7 @@ import appConfig from "$capp/config";
|
|
|
17
16
|
import Preloader from "$preloader";
|
|
18
17
|
import {defaultNumber} from "$cutils";
|
|
19
18
|
import Tooltip from "$ecomponents/Tooltip";
|
|
19
|
+
import {isMultiUsersAllowed} from "$cauth/utils/session";
|
|
20
20
|
const UserProfileAvatarComponent = React.forwardRef(({drawerRef,chevronIconProps:customChevronIconProps,size,withLabel,...props},ref)=>{
|
|
21
21
|
let u = defaultObj(Auth.getLoggedUser());
|
|
22
22
|
const deviceNameRef = React.useRef(null);
|
|
@@ -77,7 +77,7 @@ const UserProfileAvatarComponent = React.forwardRef(({drawerRef,chevronIconProps
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
{
|
|
80
|
+
isMultiUsersAllowed() && {
|
|
81
81
|
label : i18n.lang("logout",'Déconnexion'),
|
|
82
82
|
icon : "logout",
|
|
83
83
|
onPress : (a)=>{
|