mg-library 1.0.540 → 1.0.542
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/components.js +0 -1
- package/functions.js +4 -3
- package/package.json +1 -1
package/components.js
CHANGED
package/functions.js
CHANGED
@@ -8,6 +8,7 @@ import 'moment/locale/es';
|
|
8
8
|
import 'moment/locale/en-gb';
|
9
9
|
import { Camera } from 'expo-camera';
|
10
10
|
|
11
|
+
import MGText from './components';
|
11
12
|
import * as mgConstants from './constants.js';
|
12
13
|
|
13
14
|
// Navigator
|
@@ -24,7 +25,7 @@ export function navigatorHeader(insets, theme, onPressLogout, company) {
|
|
24
25
|
<Layout style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: theme['color-primary-500'], flexDirection: 'column', justifyContent: 'flex-end' }]}>
|
25
26
|
<View style={{ flexDirection: 'row', flexGrow: 1 }}>
|
26
27
|
<View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
|
27
|
-
<
|
28
|
+
<MGText category='h5' style={{ color: 'white' }}>{companyDescription}</MGText>
|
28
29
|
</View>
|
29
30
|
<View style={{ flexGrow: 0.1, flexDirection: 'column' }}>
|
30
31
|
<Button style={{ alignSelf: 'center' }} accessoryLeft={logoutIcon} onPress={() => { onPressLogout() }} />
|
@@ -67,9 +68,9 @@ export function getCardHeader(title, subTitle) {
|
|
67
68
|
<>
|
68
69
|
<View style={{ flexDirection: 'row', marginTop: 10, marginBottom: 10, marginLeft: 10 }}>
|
69
70
|
<View style={{ flexGrow: 0.95 }}>
|
70
|
-
<
|
71
|
+
<MGText category='h6'>{title}</MGText>
|
71
72
|
{subTitle != undefined &&
|
72
|
-
<
|
73
|
+
<MGText category='p1' style={{ fontStyle: 'italic' }}>{subTitle}</MGText>
|
73
74
|
}
|
74
75
|
</View>
|
75
76
|
</View>
|