mg-library 1.0.723 → 1.0.725
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 +7 -4
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -191,15 +191,18 @@ export function MGPopover(props) {
|
|
|
191
191
|
</Box>
|
|
192
192
|
);
|
|
193
193
|
return (
|
|
194
|
-
<Popover
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
<Popover
|
|
195
|
+
isOpen={open}
|
|
196
|
+
onOpenChange={setOpen}
|
|
197
|
+
trigger={(triggerProps) => (
|
|
198
|
+
<Button {...triggerProps} action="primary" variant="solid" py="$4">
|
|
197
199
|
{props.icon ? (
|
|
198
200
|
<Icon as={MaterialCommunityIcons} name={props.icon} mr="$2" color="$white" />
|
|
199
201
|
) : null}
|
|
200
202
|
<ButtonText>{props.title}</ButtonText>
|
|
201
203
|
</Button>
|
|
202
|
-
|
|
204
|
+
)}
|
|
205
|
+
>
|
|
203
206
|
<PopoverBackdrop />
|
|
204
207
|
<PopoverContent w={300} bg="$white">
|
|
205
208
|
<PopoverArrow />
|