mg-library 1.0.353 → 1.0.355
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 +28 -16
- package/package.json +1 -1
- package/reducers.js +0 -2
package/blocks.js
CHANGED
@@ -57,22 +57,34 @@ export function MGWelcome(props) {
|
|
57
57
|
);
|
58
58
|
};
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
<
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<
|
68
|
-
<Text
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
60
|
+
if (!mgFunctionsLib.isEmpty(props.notices) {
|
61
|
+
return (
|
62
|
+
<View style={mgFunctionsLib.getBasicStyleSheet().availableArea}>
|
63
|
+
<FlatList
|
64
|
+
data={props.notices}
|
65
|
+
keyExtractor={item => item.idNotice.toString()}
|
66
|
+
renderItem={({ item }) => (
|
67
|
+
<Card header={cardHeader(item)} style={{ marginBottom: 10, marginHorizontal: 10 }}>
|
68
|
+
<Text>
|
69
|
+
<Text style={{ marginBottom: 10 }}>{item.content}</Text>
|
70
|
+
</Text>
|
71
|
+
</Card>
|
72
|
+
)}
|
73
|
+
ListHeaderComponent={listHeaderComponent}
|
74
|
+
/>
|
75
|
+
)
|
76
|
+
</View>
|
77
|
+
)
|
78
|
+
} else {
|
79
|
+
return (
|
80
|
+
<>
|
81
|
+
{listHeaderComponent}
|
82
|
+
<Card style={{flex: 1, flexDirection: 'column', alignItems:'center'}}>
|
83
|
+
<Image style={{width: 300, height: 150, marginTop: 30, marginBottom: 30}} source={require('./assets/welcome.png')} />
|
84
|
+
</Card>
|
85
|
+
</>
|
86
|
+
)
|
87
|
+
}
|
76
88
|
|
77
89
|
}
|
78
90
|
|
package/package.json
CHANGED
package/reducers.js
CHANGED
@@ -38,11 +38,9 @@ export const mgLogin = (state, action) => {
|
|
38
38
|
state.server = server;
|
39
39
|
state.company = company;
|
40
40
|
state.accessToken = accessToken;
|
41
|
-
return state;
|
42
41
|
}
|
43
42
|
|
44
43
|
export const mgLogout = (state) => {
|
45
44
|
state.isLoggedIn = false;
|
46
45
|
state.accessToken = '';
|
47
|
-
return state;
|
48
46
|
}
|