mg-library 1.0.579 → 1.0.581
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 +9 -14
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -597,17 +597,6 @@ export function MGButton(props) {
|
|
|
597
597
|
|
|
598
598
|
export function MGPopover(props) {
|
|
599
599
|
const [visible, setVisible] = useState(false);
|
|
600
|
-
const button = () => (
|
|
601
|
-
<NBButton py={4} colorScheme='primary'
|
|
602
|
-
leftIcon={
|
|
603
|
-
<NBIcon as={MaterialCommunityIcons} name={props.icon} size='lg' color='white' />
|
|
604
|
-
}
|
|
605
|
-
onPress={() => setVisible(true)}>
|
|
606
|
-
<MGText category="p1" color="white">
|
|
607
|
-
{props.title}
|
|
608
|
-
</MGText>
|
|
609
|
-
</NBButton>
|
|
610
|
-
);
|
|
611
600
|
let cardFooter = (
|
|
612
601
|
<>
|
|
613
602
|
<View style={{ flexGrow: 1, flexDirection: 'row', justifyContent: 'space-around', marginTop: 20, marginBottom: 20 }}>
|
|
@@ -625,9 +614,15 @@ export function MGPopover(props) {
|
|
|
625
614
|
isOpen={visible}
|
|
626
615
|
onClose={() => setVisible(false)}
|
|
627
616
|
trigger={triggerProps => (
|
|
628
|
-
<
|
|
629
|
-
{
|
|
630
|
-
|
|
617
|
+
<NBButton py={4} colorScheme='primary'
|
|
618
|
+
leftIcon={
|
|
619
|
+
<NBIcon as={MaterialCommunityIcons} name={props.icon} size='lg' color='white' />
|
|
620
|
+
}
|
|
621
|
+
onPress={() => setVisible(true)}>
|
|
622
|
+
<MGText category="p1" color="white">
|
|
623
|
+
{props.title}
|
|
624
|
+
</MGText>
|
|
625
|
+
</NBButton>
|
|
631
626
|
)}
|
|
632
627
|
>
|
|
633
628
|
<NBPopover.Content w="300px" bg="white">
|