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