@fto-consult/expo-ui 6.64.19 → 6.64.20
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
@@ -51,11 +51,12 @@ const useGetItems = (options)=>{
|
|
51
51
|
dir : "asc"
|
52
52
|
}) : null;
|
53
53
|
let hasDrawerSectionOrder = false;
|
54
|
-
Object.map(drawerSections,(
|
55
|
-
if(typeof(
|
56
|
-
|
54
|
+
Object.map(drawerSections,(ss,s)=>{
|
55
|
+
if(typeof(ss) =='string' && ss){
|
56
|
+
ss = {label:ss.trim(),code:String(s)};
|
57
57
|
}
|
58
|
-
if(!isObj(
|
58
|
+
if(!isObj(ss)) return null;
|
59
|
+
const section= Object.clone(ss);
|
59
60
|
const sCode = defaultStr(section.code,s);
|
60
61
|
const sLabel = isValidElement(section.label,true) && section.label || isValidElement(section.text,true) && section.text || null;
|
61
62
|
if(!sLabel || !sCode) return null;
|
@@ -101,7 +102,7 @@ const useGetItems = (options)=>{
|
|
101
102
|
}
|
102
103
|
})
|
103
104
|
if(handleHelp){
|
104
|
-
const dHelp = isObj(items.help)? items.help : {};
|
105
|
+
const dHelp = isObj(items.help)? Object.clone(items.help) : {};
|
105
106
|
items.help = {
|
106
107
|
key : 'help',
|
107
108
|
label : 'Aide',
|
@@ -116,7 +117,7 @@ const useGetItems = (options)=>{
|
|
116
117
|
routeName : aboutScreenName,
|
117
118
|
});
|
118
119
|
}
|
119
|
-
const dashboard = isObj(items.dashboard) ? items.dashboard : {};
|
120
|
+
const dashboard = isObj(items.dashboard) ? Object.clone(items.dashboard) : {};
|
120
121
|
const dash = {
|
121
122
|
icon : 'view-dashboard',
|
122
123
|
title : 'Dashboard',
|
@@ -11,6 +11,6 @@ export default function ContentPrivacy (){
|
|
11
11
|
: React.isValidElement(PrivacyPolicy) ? PrivacyPolicy :
|
12
12
|
<Label primary style={{fontSize:15,fontWeight:'bold',padding:10}}>
|
13
13
|
Pour modifier le contenu de la politique de confidentialité, il suffit de déclarer dans la propriété "components"
|
14
|
-
|
14
|
+
du provider "ExpoUIProvider", initialisant l'application, un attribut "PrivacyPolicy|privacyPolicy", pointant vers le composant/l'élément react, dont le contenu , une fois rendu devra remplacer celui ci (le décrivant);
|
15
15
|
</Label>
|
16
16
|
}
|
@@ -12,6 +12,6 @@ export default function ContentTermsOfUses (){
|
|
12
12
|
: React.isValidElement(TermsOfUses) ? TermsOfUses :
|
13
13
|
<Label primary style={{fontSize:15,fontWeight:'bold',padding:10}}>
|
14
14
|
Pour modifier le contenu des Termes et contrat d'utilisation, il suffit de déclarer dans la propriété "components"
|
15
|
-
|
15
|
+
du provider "ExpoUIProvider", initialisant l'application, un attribut "TermsOfUses|termsOfUses", pointant vers le composant/l'élément react, dont le contenu, une fois rendu devra remplacer celui ci (le décrivant);
|
16
16
|
</Label>
|
17
17
|
}
|