mg-library 1.0.763 → 1.0.765
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/blocks.js +22 -20
- package/constants.js +1 -0
- package/login.js +3 -0
- package/mg-library.rar +0 -0
- package/package.json +1 -1
- package/.expo/README.md +0 -17
package/blocks.js
CHANGED
|
@@ -27,13 +27,13 @@ export function MGWelcome(props) {
|
|
|
27
27
|
{!mgFunctionsLib.isEmpty(props.company.address) &&
|
|
28
28
|
<MGText fontSize="$sm" lineHeight={16} style={{ textAlign: 'center' }} category='c1'>{props.company.address}</MGText>
|
|
29
29
|
}
|
|
30
|
-
{!mgFunctionsLib.isEmpty(props.company.city) &&
|
|
30
|
+
{!mgFunctionsLib.isEmpty(props.company.city) &&
|
|
31
31
|
<MGText fontSize="$sm" lineHeight={16} style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</MGText>
|
|
32
32
|
}
|
|
33
|
-
{!mgFunctionsLib.isEmpty(props.company.phone) &&
|
|
33
|
+
{!mgFunctionsLib.isEmpty(props.company.phone) &&
|
|
34
34
|
<MGText fontSize="$sm" lineHeight={16} style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</MGText>
|
|
35
35
|
}
|
|
36
|
-
{!mgFunctionsLib.isEmpty(props.company.email) &&
|
|
36
|
+
{!mgFunctionsLib.isEmpty(props.company.email) &&
|
|
37
37
|
<MGText fontSize="$sm" lineHeight={16} style={{ textAlign: 'center' }} category='c1'>{props.company.email}</MGText>
|
|
38
38
|
}
|
|
39
39
|
</View>
|
|
@@ -144,24 +144,26 @@ export function MGBenefits(props) {
|
|
|
144
144
|
|
|
145
145
|
return (
|
|
146
146
|
<View style={mgFunctionsLib.getBasicStyleSheet().availableArea}>
|
|
147
|
-
<
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
{item
|
|
153
|
-
|
|
154
|
-
<
|
|
147
|
+
<View style={{marginTop: 10}}>
|
|
148
|
+
<FlatList
|
|
149
|
+
data={props.benefits}
|
|
150
|
+
keyExtractor={item => item.idNotice.toString()}
|
|
151
|
+
renderItem={({ item }) => (
|
|
152
|
+
<MGCard header={cardHeader(item)} style={{ marginBottom: 10, marginHorizontal: 10 }}>
|
|
153
|
+
{item.imageUrl != undefined &&
|
|
154
|
+
<View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 5 }}>
|
|
155
|
+
<Image source={{ uri: item.imageUrl }} style={{ width: '50%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }} />
|
|
156
|
+
</View>
|
|
157
|
+
}
|
|
158
|
+
<View style={{ flexGrow: 1, alignItems: 'center', marginBottom: 10 }}>
|
|
159
|
+
<MGText style={{ flexGrow: 1, textAlign: 'center' }}>{item.content}</MGText>
|
|
155
160
|
</View>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
ListHeaderComponent={listHeaderComponent}
|
|
163
|
-
ListFooterComponent={listFooterComponent}
|
|
164
|
-
/>
|
|
161
|
+
</MGCard>
|
|
162
|
+
)}
|
|
163
|
+
ListHeaderComponent={listHeaderComponent}
|
|
164
|
+
ListFooterComponent={listFooterComponent}
|
|
165
|
+
/>
|
|
166
|
+
</View>
|
|
165
167
|
</View>
|
|
166
168
|
)
|
|
167
169
|
|
package/constants.js
CHANGED
package/login.js
CHANGED
|
@@ -17,6 +17,9 @@ export function onPressLogin(dispatch, actions, app, apiUrl, language, data) {
|
|
|
17
17
|
let appSession = response.data;
|
|
18
18
|
dispatch(actions.login(appSession));
|
|
19
19
|
mgFunctionsLib.writeToLocalStorage(mgConstantsLib.ACCESS_TOKEN, appSession.accessToken);
|
|
20
|
+
|
|
21
|
+
console.log(apiUrl);
|
|
22
|
+
|
|
20
23
|
dispatch(actions.apiSuccess());
|
|
21
24
|
})
|
|
22
25
|
.catch(error => {
|
package/mg-library.rar
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/.expo/README.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
> Why do I have a folder named ".expo" in my project?
|
|
2
|
-
|
|
3
|
-
The ".expo" folder is created when an Expo project is started using "expo start" command.
|
|
4
|
-
|
|
5
|
-
> What does the "packager-info.json" file contain?
|
|
6
|
-
|
|
7
|
-
The "packager-info.json" file contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
|
|
8
|
-
|
|
9
|
-
> What does the "settings.json" file contain?
|
|
10
|
-
|
|
11
|
-
The "settings.json" file contains the server configuration that is used to serve the application manifest.
|
|
12
|
-
|
|
13
|
-
> Should I commit the ".expo" folder?
|
|
14
|
-
|
|
15
|
-
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
|
|
16
|
-
|
|
17
|
-
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
|