@fto-consult/expo-ui 7.12.0 → 7.12.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.12.0",
3
+ "version": "7.12.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -96,19 +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
99
  if(handleHelp){
113
100
  const dHelp = isObj(items.help)? Object.clone(items.help) : {};
114
101
  items.help = {
@@ -119,10 +106,6 @@ const useGetItems = (options)=>{
119
106
  ...dHelp,
120
107
  items : Array.isArray(dHelp.items)? dHelp.items : [],
121
108
  };
122
- if(!hasCapture){
123
- items.help.items.push(captureSide);
124
- hasCapture = true;
125
- }
126
109
  items.help.items.push({
127
110
  icon : 'help',
128
111
  label : 'A propos de '+APP.getName(),
@@ -151,6 +134,17 @@ const useGetItems = (options)=>{
151
134
  delete items[section];
152
135
  }
153
136
  });
137
+ const captureSide = {
138
+ label : <RecordingButton/>,
139
+ style : [theme.styles.noPadding],
140
+ labelProps : {style : [{flexShrink : 1},theme.styles.alignItemsFlexStart,theme.styles.w100]}
141
+ };
142
+ if(isObj(items.help) && Array.isArray(items.help.items)){
143
+ items.help = Object.clone(items.help);
144
+ items.help.items.push(captureSide);
145
+ } else {
146
+ items.desktopCapturer = captureSide;
147
+ }
154
148
  return items;
155
149
  },[showProfilOnDrawer,handleHelp,theme.name,theme.colors.primary,theme.colors.secondary,refreshItemsRef.current,force,isSignedIn])
156
150
  }