mg-library 1.0.545 → 1.0.546

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/blocks.js +9 -10
  2. package/package.json +1 -1
package/blocks.js CHANGED
@@ -10,6 +10,7 @@ import { uploadFile } from '@uploadcare/upload-client';
10
10
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
11
11
 
12
12
  import './prototypes.js';
13
+ import MGText from './components.js';
13
14
  import * as mgFunctionsLib from './functions.js';
14
15
  import * as mgConstantsLib from './constants.js';
15
16
  import * as mgLoginLib from './login.js';
@@ -22,11 +23,11 @@ export function MGWelcome(props) {
22
23
  <Image source={{ uri: props.company.logoUrl }} style={{ width: 100, height: 100 }} />
23
24
  </View>
24
25
  <View style={{ flex: 1, flexDirection: 'column', alignSelf: 'center' }}>
25
- <Text style={{ textAlign: 'center' }} category='h6'>{props.company.legalName}</Text>
26
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.address}</Text>
27
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</Text>
28
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</Text>
29
- <Text style={{ textAlign: 'center' }} category='c1'>{props.company.email}</Text>
26
+ <MGText style={{ textAlign: 'center' }} category='h6'>{props.company.legalName}</MGText>
27
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.address}</MGText>
28
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</MGText>
29
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</MGText>
30
+ <MGText style={{ textAlign: 'center' }} category='c1'>{props.company.email}</MGText>
30
31
  </View>
31
32
  </View>
32
33
  )
@@ -57,8 +58,8 @@ export function MGWelcome(props) {
57
58
  {item.isImportant &&
58
59
  <MaterialCommunityIcons style={{ flex: 1 }} name='alert-circle-outline' color={props.theme['color-primary-500']} size={30} />
59
60
  }
60
- <Text style={{ flex: 1 }} category='h6'>{item.description}</Text>
61
- <Text style={{ flex: 1, marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</Text>
61
+ <MGText style={{ flex: 1 }} category='h6'>{item.description}</MGText>
62
+ <MGText style={{ flex: 1, marginBottom: 10 }} category='c1'>{mgFunctionsLib.getDateForExposition(item.noticeDate, props.language)}, {item.noticeTime._asTime()}</MGText>
62
63
  </View>
63
64
  </>
64
65
  );
@@ -86,9 +87,7 @@ export function MGWelcome(props) {
86
87
  <Image source={{ uri: item.imageUrl }} style={{ width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }} />
87
88
  </View>
88
89
  }
89
- <Text>
90
- <Text style={{ marginBottom: 10 }}>{item.content}</Text>
91
- </Text>
90
+ <MGText style={{ marginBottom: 10 }}>{item.content}</MGText>
92
91
  </Card>
93
92
  )}
94
93
  ListHeaderComponent={listHeaderComponent}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.545",
3
+ "version": "1.0.546",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {