@fto-consult/expo-ui 7.12.0 → 7.12.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.
package/package.json
CHANGED
@@ -96,39 +96,6 @@ const useGetItems = (options)=>{
|
|
96
96
|
items[item.drawerSection.trim()].items.push(item);
|
97
97
|
}
|
98
98
|
});
|
99
|
-
const captureSide = {
|
100
|
-
label : <RecordingButton/>,
|
101
|
-
style : [theme.styles.noPadding],
|
102
|
-
labelProps : {style : [{flexShrink : 1},theme.styles.alignItemsFlexStart,theme.styles.w100]}
|
103
|
-
};
|
104
|
-
let hasCapture = false;
|
105
|
-
if(!hasCapture){
|
106
|
-
if(isObj(items.admin) && Array.isArray(items.admin.items)){
|
107
|
-
items.admin = Object.clone(items.admin);
|
108
|
-
items.admin.items.push(captureSide);
|
109
|
-
hasCapture = true;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
if(handleHelp){
|
113
|
-
const dHelp = isObj(items.help)? Object.clone(items.help) : {};
|
114
|
-
items.help = {
|
115
|
-
key : 'help',
|
116
|
-
label : 'Aide',
|
117
|
-
section : true,
|
118
|
-
divider : false,
|
119
|
-
...dHelp,
|
120
|
-
items : Array.isArray(dHelp.items)? dHelp.items : [],
|
121
|
-
};
|
122
|
-
if(!hasCapture){
|
123
|
-
items.help.items.push(captureSide);
|
124
|
-
hasCapture = true;
|
125
|
-
}
|
126
|
-
items.help.items.push({
|
127
|
-
icon : 'help',
|
128
|
-
label : 'A propos de '+APP.getName(),
|
129
|
-
routeName : aboutScreenName,
|
130
|
-
});
|
131
|
-
}
|
132
99
|
const dashboard = isObj(items.dashboard) ? Object.clone(items.dashboard) : {};
|
133
100
|
const dash = {
|
134
101
|
icon : 'view-dashboard',
|
@@ -151,6 +118,37 @@ const useGetItems = (options)=>{
|
|
151
118
|
delete items[section];
|
152
119
|
}
|
153
120
|
});
|
121
|
+
let hasCapture = false;
|
122
|
+
const captureSide = {
|
123
|
+
label : <RecordingButton/>,
|
124
|
+
style : [theme.styles.noPadding],
|
125
|
+
labelProps : {style : [{flexShrink : 1},theme.styles.alignItemsFlexStart,theme.styles.w100]}
|
126
|
+
};
|
127
|
+
if(handleHelp){
|
128
|
+
const dHelp = isObj(items.help)? Object.clone(items.help) : {};
|
129
|
+
items.help = {
|
130
|
+
key : 'help',
|
131
|
+
label : 'Aide',
|
132
|
+
section : true,
|
133
|
+
divider : false,
|
134
|
+
...dHelp,
|
135
|
+
items : Array.isArray(dHelp.items)? dHelp.items : [],
|
136
|
+
};
|
137
|
+
items.help.items.push(captureSide,{
|
138
|
+
icon : 'help',
|
139
|
+
label : 'A propos de '+APP.getName(),
|
140
|
+
routeName : aboutScreenName,
|
141
|
+
});
|
142
|
+
hasCapture = true;
|
143
|
+
}
|
144
|
+
if(!hasCapture){
|
145
|
+
if(isObj(items.help) && Array.isArray(items.help.items)){
|
146
|
+
items.help = Object.clone(items.help);
|
147
|
+
items.help.items.push(captureSide);
|
148
|
+
} else {
|
149
|
+
items.desktopCapturer = captureSide;
|
150
|
+
}
|
151
|
+
}
|
154
152
|
return items;
|
155
153
|
},[showProfilOnDrawer,handleHelp,theme.name,theme.colors.primary,theme.colors.secondary,refreshItemsRef.current,force,isSignedIn])
|
156
154
|
}
|