mg-library 1.0.429 → 1.0.431

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.
Files changed (3) hide show
  1. package/blocks.js +18 -19
  2. package/mg-library.rar +0 -0
  3. package/package.json +10 -10
package/blocks.js CHANGED
@@ -30,9 +30,14 @@ export function MGWelcome(props) {
30
30
  </View>
31
31
  )
32
32
 
33
+ let subTitle = mgFunctionsLib.i18nString('notices', props.language);
34
+
35
+ if(props.subTitle != undefined)
36
+ subTitle = props.subTitle;
37
+
33
38
  let listHeaderComponent = (
34
39
  <View>
35
- <MGSessionHeader module={mgFunctionsLib.i18nString('notices', props.language)} person={props.person} theme={props.theme} />
40
+ <MGSessionHeader module={subTitle} person={props.person} theme={props.theme} />
36
41
  {companyInfoComponent}
37
42
  <MGDivider />
38
43
  {props.beforeNotices != undefined &&
@@ -44,24 +49,6 @@ export function MGWelcome(props) {
44
49
  </View>
45
50
  );
46
51
 
47
- /* function cardHeader(item) {
48
- return (
49
- <>
50
- <View style={{ flexDirection: 'row', marginVertical: 10, marginHorizontal: 10 }}>
51
- <View style={{ flexGrow: 0.10 }}>
52
- {item.isImportant &&
53
- <MaterialCommunityIcons name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} style={{ flex: 1 }} />
54
- }
55
- </View>
56
- <View style={{ flexGrow: 0.90 }}>
57
- <Text category='h6'>{item.description}</Text>
58
- <Text style={{ marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</Text>
59
- </View>
60
- </View>
61
- </>
62
- );
63
- }; */
64
-
65
52
  function cardHeader(item) {
66
53
  return (
67
54
  <>
@@ -590,4 +577,16 @@ export function MGActivityIndicator(props) {
590
577
  <ActivityIndicator size="large" color={props.theme['color-primary-500']} />
591
578
  </View>
592
579
  )
580
+ }
581
+
582
+ export function MGCardHeader(props) {
583
+ return (
584
+ <>
585
+ <View style={{ flexDirection: 'row', marginVertical: 10, marginLeft: 10 }}>
586
+ <View style={{ flexGrow: 0.95 }}>
587
+ <Text category='h6'>{props.title}</Text>
588
+ </View>
589
+ </View>
590
+ </>
591
+ );
593
592
  }
package/mg-library.rar CHANGED
Binary file
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "mg-library",
3
- "version": "1.0.429",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "",
10
- "license": "ISC"
11
- }
2
+ "name": "mg-library",
3
+ "version": "1.0.431",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }