mg-library 1.0.737 → 1.0.739
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/components.js +5 -4
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -227,6 +227,7 @@ export function MGPopover(props) {
|
|
|
227
227
|
{...triggerProps}
|
|
228
228
|
action="primary"
|
|
229
229
|
variant="solid"
|
|
230
|
+
h={50}
|
|
230
231
|
onPress={(e) => {
|
|
231
232
|
triggerProps?.onPress?.(e);
|
|
232
233
|
setOpen(true);
|
|
@@ -241,8 +242,8 @@ export function MGPopover(props) {
|
|
|
241
242
|
<PopoverContent w={300} bg="$white" zIndex={9999} elevation={24}>
|
|
242
243
|
<PopoverArrow />
|
|
243
244
|
<PopoverBody>
|
|
244
|
-
<Box alignItems="center" justifyContent="center">
|
|
245
|
-
<Icon as={MaterialCommunityIcons} name="alert-outline" size=
|
|
245
|
+
<Box style={{flex: 1}} alignItems="center" justifyContent="center">
|
|
246
|
+
<Icon as={MaterialCommunityIcons} name="alert-outline" size="lg" color="$primary500" mb="$3" />
|
|
246
247
|
<MGText textAlign="center">
|
|
247
248
|
{mgFunctionsLib.i18nString('confirm', language)}?
|
|
248
249
|
</MGText>
|
|
@@ -250,10 +251,10 @@ export function MGPopover(props) {
|
|
|
250
251
|
</PopoverBody>
|
|
251
252
|
<PopoverFooter>
|
|
252
253
|
<Box flex={1} flexDirection="row" justifyContent="space-around" mt="$5" mb="$5">
|
|
253
|
-
<Button action="primary" variant="solid" onPress={handleConfirm}>
|
|
254
|
+
<Button h={50} action="primary" variant="solid" onPress={handleConfirm}>
|
|
254
255
|
<ButtonText>{mgFunctionsLib.i18nString('yes', language)}</ButtonText>
|
|
255
256
|
</Button>
|
|
256
|
-
<Button action="primary" variant="outline" onPress={() => setOpen(false)}>
|
|
257
|
+
<Button h={50} action="primary" variant="outline" onPress={() => setOpen(false)}>
|
|
257
258
|
<ButtonText>{mgFunctionsLib.i18nString('no', language)}</ButtonText>
|
|
258
259
|
</Button>
|
|
259
260
|
</Box>
|