mg-library 1.0.486 → 1.0.487

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 (2) hide show
  1. package/functions.js +5 -2
  2. package/package.json +1 -1
package/functions.js CHANGED
@@ -62,12 +62,15 @@ export function getRequestHeader() {
62
62
 
63
63
  // Cards
64
64
 
65
- export function getCardHeader(text) {
65
+ export function getCardHeader(title, subTitle) {
66
66
  return (
67
67
  <>
68
68
  <View style={{ flexDirection: 'row', marginTop: 10, marginBottom: 10, marginLeft: 10 }}>
69
69
  <View style={{ flexGrow: 0.95 }}>
70
- <Text category='h6'>{text}</Text>
70
+ <Text category='h6'>{title}</Text>
71
+ {subTitle != undefined &&
72
+ <Text category='p1' style={{fontStyle: 'italic'}}>{subTitle}</Text>
73
+ }
71
74
  </View>
72
75
  </View>
73
76
  </>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.486",
3
+ "version": "1.0.487",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {