mg-library 1.0.229 → 1.0.230

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/package.json +1 -1
  2. package/welcome.js +17 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.229",
3
+ "version": "1.0.230",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/welcome.js CHANGED
@@ -64,24 +64,22 @@ export function MGWelcome(props) {
64
64
  */
65
65
 
66
66
  let companyInfoComponent = (
67
- <View>
68
- <Card style={styles.cardCompany}>
69
- <CardItem style={styles.cardItemCompanyLogo}>
70
- <Image source={{uri: props.session.company.logoUrl}} style={{width: 100, height: 100}} />
71
- </CardItem>
72
- <CardItem style={styles.cardItemCompanyInfo}>
73
- <Text style={styles.textCompanyLegalName}>{props.session.company.legalName}</Text>
74
- <Text style={styles.textCompanyInfo}>{props.session.company.address}</Text>
75
- <Text style={styles.textCompanyInfo}>{props.session.company.city}, {props.session.company.province}</Text>
76
- <Text style={styles.textCompanyInfo}>{props.session.company.phone}</Text>
77
- <Text style={styles.textCompanyInfo}>{props.session.company.email}</Text>
78
- </CardItem>
79
- </Card>
80
- </View>
67
+ <Card style={styles.cardCompany}>
68
+ <CardItem style={styles.cardItemCompanyLogo}>
69
+ <Image source={{uri: props.session.company.logoUrl}} style={{width: 100, height: 100}} />
70
+ </CardItem>
71
+ <CardItem style={styles.cardItemCompanyInfo}>
72
+ <Text style={styles.textCompanyLegalName}>{props.session.company.legalName}</Text>
73
+ <Text style={styles.textCompanyInfo}>{props.session.company.address}</Text>
74
+ <Text style={styles.textCompanyInfo}>{props.session.company.city}, {props.session.company.province}</Text>
75
+ <Text style={styles.textCompanyInfo}>{props.session.company.phone}</Text>
76
+ <Text style={styles.textCompanyInfo}>{props.session.company.email}</Text>
77
+ </CardItem>
78
+ </Card>
81
79
  )
82
80
 
83
81
  let listHeaderComponent = (
84
- <View>
82
+ <View style={styles.viewHeader}>
85
83
  {companyInfoComponent}
86
84
  <MGSubtitle text={mgFunctions.i18nString('notices', language)} />
87
85
  </View>
@@ -147,6 +145,10 @@ function MGAttachedFiles(props) {
147
145
  }
148
146
 
149
147
  const styles = StyleSheet.create({
148
+ viewHeader: {
149
+ flex: 1,
150
+ flexDirection: 'row'
151
+ },
150
152
  cardCompany: {
151
153
  flex: 1,
152
154
  flexDirection: 'row'