mg-library 1.0.616 → 1.0.618
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 +39 -1
- package/functions.js +0 -13
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -658,7 +658,7 @@ export function MGPressable({ children, style, activeOpacity, ...otherProps }) {
|
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
660
|
|
|
661
|
-
export function MGFlatListHeader(props) {
|
|
661
|
+
/* export function MGFlatListHeader(props) {
|
|
662
662
|
return (
|
|
663
663
|
<View style={{ flex: 1 }}>
|
|
664
664
|
{props.sessionHeader}
|
|
@@ -677,6 +677,44 @@ export function MGFlatListHeader(props) {
|
|
|
677
677
|
}
|
|
678
678
|
</View>
|
|
679
679
|
)
|
|
680
|
+
} */
|
|
681
|
+
|
|
682
|
+
export function MGFlatListHeader(props) {
|
|
683
|
+
return (
|
|
684
|
+
<View style={[{ flex: 1 }, props.containerStyle]}>
|
|
685
|
+
{props.sessionHeader}
|
|
686
|
+
{props.goBack}
|
|
687
|
+
{props.beforeTitle}
|
|
688
|
+
<View
|
|
689
|
+
style={[
|
|
690
|
+
{
|
|
691
|
+
marginHorizontal: 10,
|
|
692
|
+
marginBottom: 20,
|
|
693
|
+
paddingHorizontal: 10,
|
|
694
|
+
paddingVertical: 10,
|
|
695
|
+
borderColor: props.colors.primary['500'],
|
|
696
|
+
borderRadius: 10,
|
|
697
|
+
borderStyle: 'solid',
|
|
698
|
+
borderWidth: 1
|
|
699
|
+
},
|
|
700
|
+
props.titleContainerStyle
|
|
701
|
+
]}
|
|
702
|
+
>
|
|
703
|
+
<MGText
|
|
704
|
+
category="h6"
|
|
705
|
+
style={[{ marginLeft: 10 }, props.titleTextStyle]}
|
|
706
|
+
>
|
|
707
|
+
{props.title}
|
|
708
|
+
</MGText>
|
|
709
|
+
{props.subTitle != undefined &&
|
|
710
|
+
props.subTitle
|
|
711
|
+
}
|
|
712
|
+
</View>
|
|
713
|
+
{props.afterTitle != undefined &&
|
|
714
|
+
props.afterTitle
|
|
715
|
+
}
|
|
716
|
+
</View>
|
|
717
|
+
);
|
|
680
718
|
}
|
|
681
719
|
|
|
682
720
|
export function MGSessionHeader(props) {
|
package/functions.js
CHANGED
|
@@ -351,19 +351,6 @@ export function getTimeForExposition(date) {
|
|
|
351
351
|
|
|
352
352
|
// Charts
|
|
353
353
|
|
|
354
|
-
export function getChartConfig(theme) {
|
|
355
|
-
return {
|
|
356
|
-
backgroundGradientFrom: theme['color-primary-100'],
|
|
357
|
-
backgroundGradientFromOpacity: 1,
|
|
358
|
-
backgroundGradientTo: theme['color-primary-100'],
|
|
359
|
-
backgroundGradientToOpacity: 1,
|
|
360
|
-
color: () => theme['color-primary-500'],
|
|
361
|
-
strokeWidth: 3,
|
|
362
|
-
barPercentage: 0.5,
|
|
363
|
-
decimalPlaces: 0
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
|
|
367
354
|
export function getWidthForCharts() {
|
|
368
355
|
return Dimensions.get('window').width * 0.90;
|
|
369
356
|
}
|