@ammarkhalidfarooq/dashboard-package 0.4.3 → 0.4.5
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 +7 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -29
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1664,32 +1664,9 @@ var TopPerformingCampaignsCard = function TopPerformingCampaignsCard() {
|
|
|
1664
1664
|
});
|
|
1665
1665
|
};
|
|
1666
1666
|
var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref3) {
|
|
1667
|
-
var sx = _ref3.sx
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
value: "78 · 36%",
|
|
1671
|
-
percentage: 36
|
|
1672
|
-
}, {
|
|
1673
|
-
country: "United Kingdom",
|
|
1674
|
-
value: "42 · 20%",
|
|
1675
|
-
percentage: 20
|
|
1676
|
-
}, {
|
|
1677
|
-
country: "Canada",
|
|
1678
|
-
value: "28 · 13%",
|
|
1679
|
-
percentage: 13
|
|
1680
|
-
}, {
|
|
1681
|
-
country: "UAE",
|
|
1682
|
-
value: "24 · 11%",
|
|
1683
|
-
percentage: 11
|
|
1684
|
-
}, {
|
|
1685
|
-
country: "Saudi Arabia",
|
|
1686
|
-
value: "19 · 9%",
|
|
1687
|
-
percentage: 9
|
|
1688
|
-
}, {
|
|
1689
|
-
country: "Other",
|
|
1690
|
-
value: "24 · 11%",
|
|
1691
|
-
percentage: 11
|
|
1692
|
-
}];
|
|
1667
|
+
var sx = _ref3.sx,
|
|
1668
|
+
donorGeographyData = _ref3.donorGeographyData;
|
|
1669
|
+
var data = donorGeographyData || [];
|
|
1693
1670
|
return /*#__PURE__*/jsx(CardWrapper, {
|
|
1694
1671
|
title: "Paid donor geography",
|
|
1695
1672
|
subtitle: "Where ad-acquired donors come from",
|
|
@@ -5241,8 +5218,7 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
|
|
|
5241
5218
|
},
|
|
5242
5219
|
yaxis: {
|
|
5243
5220
|
min: 0,
|
|
5244
|
-
|
|
5245
|
-
tickAmount: 3,
|
|
5221
|
+
tickAmount: 4,
|
|
5246
5222
|
labels: {
|
|
5247
5223
|
formatter: function formatter(val) {
|
|
5248
5224
|
return "$".concat(formatNumber(val));
|
|
@@ -5696,6 +5672,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5696
5672
|
activeMetric = _useState2[0],
|
|
5697
5673
|
setActiveMetric = _useState2[1];
|
|
5698
5674
|
var donationTypeData = (apiData === null || apiData === void 0 ? void 0 : apiData.donationTypeData) || [];
|
|
5675
|
+
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
|
|
5699
5676
|
var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
|
|
5700
5677
|
var getExtendedCharts = function getExtendedCharts() {
|
|
5701
5678
|
var charts = _toConsumableArray(allCharts);
|
|
@@ -6186,7 +6163,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6186
6163
|
children: /*#__PURE__*/jsx(PaidDonorGeographyCard, {
|
|
6187
6164
|
sx: {
|
|
6188
6165
|
height: 330
|
|
6189
|
-
}
|
|
6166
|
+
},
|
|
6167
|
+
donorGeographyData: donorGeographyData
|
|
6190
6168
|
})
|
|
6191
6169
|
}), /*#__PURE__*/jsx(Grid, {
|
|
6192
6170
|
item: true,
|