@ammarkhalidfarooq/dashboard-package 0.4.87 → 0.4.88
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 +9 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4809,7 +4809,14 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard() {
|
|
|
4809
4809
|
var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref3) {
|
|
4810
4810
|
var sx = _ref3.sx,
|
|
4811
4811
|
donorGeographyData = _ref3.donorGeographyData;
|
|
4812
|
-
var
|
|
4812
|
+
var rawCountries = Array.isArray(donorGeographyData) ? donorGeographyData : (donorGeographyData === null || donorGeographyData === void 0 ? void 0 : donorGeographyData.countries) || [];
|
|
4813
|
+
var data = rawCountries.map(function (item) {
|
|
4814
|
+
return {
|
|
4815
|
+
country: item.countryName || item.country || "Unknown",
|
|
4816
|
+
percentage: typeof item.percentage === "number" ? item.percentage : 0,
|
|
4817
|
+
value: item.donations !== undefined ? item.donations : item.value || 0
|
|
4818
|
+
};
|
|
4819
|
+
});
|
|
4813
4820
|
return /*#__PURE__*/jsxs(Card, {
|
|
4814
4821
|
sx: _objectSpread2({
|
|
4815
4822
|
bgcolor: "#fff",
|
|
@@ -5240,7 +5247,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5240
5247
|
activeMetric = _useState2[0],
|
|
5241
5248
|
setActiveMetric = _useState2[1];
|
|
5242
5249
|
var donationTypeData = (apiData === null || apiData === void 0 ? void 0 : apiData.recurringBarChartData) || [];
|
|
5243
|
-
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.
|
|
5250
|
+
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
|
|
5244
5251
|
var trafficSourceData = (apiData === null || apiData === void 0 ? void 0 : apiData.trafficSource1) || [];
|
|
5245
5252
|
var orderBumpData = (apiData === null || apiData === void 0 ? void 0 : apiData.orderBumpData1) || [];
|
|
5246
5253
|
var upsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.upsellData1) || [];
|