@ammarkhalidfarooq/dashboard-package 0.3.19 → 0.3.20

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.es.js CHANGED
@@ -2298,7 +2298,7 @@ var NewOverview = function NewOverview(_ref) {
2298
2298
  return item.date;
2299
2299
  }) : categories;
2300
2300
  var primaryCharts = [{
2301
- label: "Total Revenue",
2301
+ label: "Total Raised",
2302
2302
  value: totalRevData.length > 0 ? "$".concat(totalRevTotal.toLocaleString()) : typeof (apiData === null || apiData === void 0 ? void 0 : apiData.totalRevenue) === "string" ? apiData.totalRevenue : "$9,200.00",
2303
2303
  subValue: "Total Donations: ".concat((apiData === null || apiData === void 0 ? void 0 : apiData.totalDonations) || 215),
2304
2304
  data: totalRevValues,
@@ -4796,7 +4796,7 @@ var OverallSection = function OverallSection(_ref) {
4796
4796
  "Total Raised": {
4797
4797
  value: "$".concat(formatNumber(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedCard)) || "$240.9K",
4798
4798
  subValue: "".concat(Number((_apiData$totalRaisedP = apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedPrev) !== null && _apiData$totalRaisedP !== void 0 ? _apiData$totalRaisedP : 0).toFixed(2), "% vs ").concat(dateName || "last month"),
4799
- label: "Total Revenue",
4799
+ label: "Total Raised",
4800
4800
  icon: PaidOutlined
4801
4801
  },
4802
4802
  "Net Raised": {
@@ -4907,7 +4907,8 @@ var OverallSection = function OverallSection(_ref) {
4907
4907
  index: 0,
4908
4908
  md: 12,
4909
4909
  isPremium: true,
4910
- isPrimary: true
4910
+ isPrimary: true,
4911
+ metric: activeMetric.includes("Raised") || activeMetric.includes("donation") ? "Revenue" : "Donors"
4911
4912
  })
4912
4913
  }), /*#__PURE__*/jsxs(Grid, {
4913
4914
  container: true,