@ammarkhalidfarooq/dashboard-package 0.6.65 → 0.6.66
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/dist/index.cjs.js +4 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2650,7 +2650,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2650
2650
|
data: []
|
|
2651
2651
|
}];
|
|
2652
2652
|
var revCats = mainChart.categories || [];
|
|
2653
|
-
|
|
2653
|
+
((apiData === null || apiData === void 0 ? void 0 : apiData.activeCampaigns) || []).length ? apiData.activeCampaigns : [{
|
|
2654
2654
|
title: "Orphan sponsorship — Yemen",
|
|
2655
2655
|
collectedAmount: 78400,
|
|
2656
2656
|
usdTargetAmount: 100000,
|
|
@@ -2686,9 +2686,6 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2686
2686
|
averageDonation: 1940,
|
|
2687
2687
|
status: "Active"
|
|
2688
2688
|
}];
|
|
2689
|
-
var campaignStatusByIndex = campaigns.map(function (c) {
|
|
2690
|
-
return c.status || "Active";
|
|
2691
|
-
});
|
|
2692
2689
|
var ob = (apiData === null || apiData === void 0 ? void 0 : apiData.orderBumpDetails) || {};
|
|
2693
2690
|
var obData = ((ob === null || ob === void 0 ? void 0 : ob.chart) || []).map(function (i) {
|
|
2694
2691
|
return Number(i.revenue || 0);
|
|
@@ -2930,12 +2927,12 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2930
2927
|
title: "Active campaigns",
|
|
2931
2928
|
subtitle: "Live fundraisers ranked by velocity",
|
|
2932
2929
|
children: /*#__PURE__*/jsx(MiniTable, {
|
|
2933
|
-
head: ["CAMPAIGN", "RAISED", "PROGRESS", "DONORS", "AVG GIFT"
|
|
2934
|
-
colAlign: ["left", "right", "left", "right", "right"
|
|
2930
|
+
head: ["CAMPAIGN", "RAISED", "PROGRESS", "DONORS", "AVG GIFT"],
|
|
2931
|
+
colAlign: ["left", "right", "left", "right", "right"],
|
|
2935
2932
|
rows: activeCampaigns.map(function (c, i) {
|
|
2936
2933
|
return [c.name, c.val1, /*#__PURE__*/jsx(ProgressBar, {
|
|
2937
2934
|
value: c.progress
|
|
2938
|
-
}, "campaign-progress-".concat(i)), c.val3, c.val4
|
|
2935
|
+
}, "campaign-progress-".concat(i)), c.val3, c.val4];
|
|
2939
2936
|
})
|
|
2940
2937
|
})
|
|
2941
2938
|
}), /*#__PURE__*/jsx(Panel, {
|