mg-library 1.0.635 → 1.0.638
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 +6 -6
- package/components.js +1 -1
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -19,7 +19,7 @@ export function MGWelcome(props) {
|
|
|
19
19
|
|
|
20
20
|
let companyInfoComponent = (
|
|
21
21
|
<View style={{ flex: 1, flexDirection: 'row', marginVertical: 10 }}>
|
|
22
|
-
|
|
22
|
+
<View style={{ flex: 1, flexGrow: 0.4, alignItems: 'center' }}>
|
|
23
23
|
<Image source={{ uri: props.company.logoUrl }} style={{ width: 100, height: 100 }} />
|
|
24
24
|
</View>
|
|
25
25
|
<View style={{ flex: 1, flexDirection: 'column', alignSelf: 'center' }}>
|
|
@@ -28,7 +28,7 @@ export function MGWelcome(props) {
|
|
|
28
28
|
<MGText style={{ textAlign: 'center' }} category='c1'>{props.company.city}, {props.company.province}</MGText>
|
|
29
29
|
<MGText style={{ textAlign: 'center' }} category='c1'>{props.company.phone}</MGText>
|
|
30
30
|
<MGText style={{ textAlign: 'center' }} category='c1'>{props.company.email}</MGText>
|
|
31
|
-
</View>
|
|
31
|
+
</View>
|
|
32
32
|
</View>
|
|
33
33
|
)
|
|
34
34
|
|
|
@@ -81,15 +81,15 @@ export function MGWelcome(props) {
|
|
|
81
81
|
keyExtractor={item => item.idNotice.toString()}
|
|
82
82
|
renderItem={({ item }) => (
|
|
83
83
|
<MGCard header={cardHeader(item)}>
|
|
84
|
-
{
|
|
84
|
+
{item.imageUrl && (
|
|
85
85
|
<Box alignItems="center" mb={4}>
|
|
86
86
|
<Image
|
|
87
87
|
source={{ uri: item.imageUrl }}
|
|
88
88
|
style={{ width: '70%', resizeMode: 'contain', height: undefined, aspectRatio: 1 }}
|
|
89
89
|
/>
|
|
90
90
|
</Box>
|
|
91
|
-
)}
|
|
92
|
-
|
|
91
|
+
)}
|
|
92
|
+
{/* <MGText mb={2}>{item.content}</MGText> */}
|
|
93
93
|
</MGCard>
|
|
94
94
|
)}
|
|
95
95
|
ListHeaderComponent={listHeaderComponent}
|
|
@@ -303,7 +303,7 @@ const nbStyles = StyleSheet.create({
|
|
|
303
303
|
input: {
|
|
304
304
|
height: 50,
|
|
305
305
|
borderWidth: 1,
|
|
306
|
-
borderColor: '
|
|
306
|
+
borderColor: 'gray',
|
|
307
307
|
borderRadius: 8,
|
|
308
308
|
paddingHorizontal: 12,
|
|
309
309
|
fontSize: 16,
|
package/components.js
CHANGED
|
@@ -24,7 +24,7 @@ export function MGText({ category = 'p1', style, ...props }) {
|
|
|
24
24
|
|
|
25
25
|
export function MGCard({ children, header = null, footer = null, style = {}, ...props }) {
|
|
26
26
|
return (
|
|
27
|
-
<Box borderWidth={1}
|
|
27
|
+
<Box borderWidth={1} borderRadius="md" borderColor="gray" bg="white" shadow={2} overflow="hidden" mb={4} mx={2} style={style} {...props}>
|
|
28
28
|
{header && (
|
|
29
29
|
<>
|
|
30
30
|
<Box p={4}>{header}</Box>
|