mg-library 1.0.731 → 1.0.733
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 +8 -4
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -174,13 +174,17 @@ export function MGPopover(props) {
|
|
|
174
174
|
try { await callback?.(); } finally { setOpen(false); }
|
|
175
175
|
};
|
|
176
176
|
return (
|
|
177
|
-
<Popover
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
<Popover
|
|
178
|
+
isOpen={open}
|
|
179
|
+
onOpenChange={setOpen}
|
|
180
|
+
trigger={(triggerProps) => (
|
|
181
|
+
// IMPORTANTE: no pongas onPress acá; dejalo a cargo de triggerProps
|
|
182
|
+
<Button {...triggerProps} action="primary" variant="solid">
|
|
180
183
|
{icon ? <Icon as={MaterialCommunityIcons} name={icon} mr="$2" color="$white" /> : null}
|
|
181
184
|
<ButtonText>{title}</ButtonText>
|
|
182
185
|
</Button>
|
|
183
|
-
|
|
186
|
+
)}
|
|
187
|
+
>
|
|
184
188
|
<PopoverBackdrop />
|
|
185
189
|
<PopoverContent w={300} bg="$white">
|
|
186
190
|
<PopoverArrow />
|