mg-library 1.0.525 → 1.0.527
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 +9 -7
- package/functions.js +2 -2
- package/mg-library.rar +0 -0
- package/package.json +1 -1
package/blocks.js
CHANGED
@@ -211,14 +211,16 @@ export function MGLogin(props) {
|
|
211
211
|
<Layout style={[mgFunctionsLib.safeAreaViewStyleSheet(insets).safeAreaView, { display: 'flex', flexDirection: 'column', flexGrow: 1 }]}>
|
212
212
|
<View style={{ flexDirection: 'column', flexGrow: 1, justifyContent: 'center' }}>
|
213
213
|
<View style={{ flexDirection: 'column', alignItems: 'center', marginBottom: 100 }}>
|
214
|
-
<Image
|
215
|
-
source={require('./assets/clubonline.png')}
|
216
|
-
style={{ width: 300, height: 150 }} />
|
217
214
|
{!isKeyboardVisible &&
|
218
|
-
|
219
|
-
<
|
220
|
-
|
221
|
-
|
215
|
+
<>
|
216
|
+
<Image
|
217
|
+
source={require('./assets/clubonline.png')}
|
218
|
+
style={{ width: 300, height: 150 }} />
|
219
|
+
<View style={{ marginHorizontal: 10, flexDirection: 'column', alignItems: 'center' }}>
|
220
|
+
<Text style={{ alignSelf: 'center', textAlign: 'center' }} category='h6'>{props.appDescription}</Text>
|
221
|
+
<Text style={{ alignSelf: 'center' }} category='p2'>{props.appVersion}</Text>
|
222
|
+
</View>
|
223
|
+
</>
|
222
224
|
}
|
223
225
|
</View>
|
224
226
|
<View>
|
package/functions.js
CHANGED
@@ -256,13 +256,13 @@ function showToast(config) {
|
|
256
256
|
export function showToastWithError(error, subMessage) {
|
257
257
|
let message = '(' + error.name + ')' + ' | ' + error.message;
|
258
258
|
if (subMessage != undefined)
|
259
|
-
message
|
259
|
+
message = message + ' | ' + subMessage;
|
260
260
|
if (error.response != undefined)
|
261
261
|
if (error.response.data != undefined)
|
262
262
|
if (error.response.data.code != undefined)
|
263
263
|
if (error.response.data.extended_code != undefined)
|
264
264
|
if (error.response.data.message != undefined)
|
265
|
-
message
|
265
|
+
message = message + ' > ' + error.response.data.code + ' | ' + error.response.data.extended_code + ' | ' + error.response.data.message
|
266
266
|
let config = {
|
267
267
|
message: message,
|
268
268
|
backgroundColor: 'red'
|
package/mg-library.rar
CHANGED
Binary file
|