mg-library 1.0.674 → 1.0.675
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/functions.js +2 -2
- package/package.json +1 -1
package/functions.js
CHANGED
|
@@ -12,12 +12,12 @@ import * as mgConstants from './constants.js';
|
|
|
12
12
|
|
|
13
13
|
// Navigator
|
|
14
14
|
|
|
15
|
-
export function navigatorHeader(insets,
|
|
15
|
+
export function navigatorHeader(insets, onPressLogout, company) {
|
|
16
16
|
let companyDescription = company.description;
|
|
17
17
|
if (companyDescription.length > 25)
|
|
18
18
|
companyDescription = companyDescription.substring(0, 25) + '...';
|
|
19
19
|
return (
|
|
20
|
-
<Box style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor:
|
|
20
|
+
<Box style={[safeAreaViewForNavigatorHeaderStyleSheet(insets).safeAreaView, { backgroundColor: '$primary500', flexDirection: 'column', justifyContent: 'flex-end' }]}>
|
|
21
21
|
<View style={{ flexDirection: 'row', flexGrow: 1 }}>
|
|
22
22
|
<View style={{ flexGrow: 0.9, marginLeft: 10, alignSelf: 'center' }}>
|
|
23
23
|
<MGText category='h5' style={{ color: 'white' }}>{companyDescription}</MGText>
|