@ammarkhalidfarooq/dashboard-package 0.4.4 → 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 +6 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -27
- 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",
|
|
@@ -5695,6 +5672,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5695
5672
|
activeMetric = _useState2[0],
|
|
5696
5673
|
setActiveMetric = _useState2[1];
|
|
5697
5674
|
var donationTypeData = (apiData === null || apiData === void 0 ? void 0 : apiData.donationTypeData) || [];
|
|
5675
|
+
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
|
|
5698
5676
|
var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
|
|
5699
5677
|
var getExtendedCharts = function getExtendedCharts() {
|
|
5700
5678
|
var charts = _toConsumableArray(allCharts);
|
|
@@ -6185,7 +6163,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6185
6163
|
children: /*#__PURE__*/jsx(PaidDonorGeographyCard, {
|
|
6186
6164
|
sx: {
|
|
6187
6165
|
height: 330
|
|
6188
|
-
}
|
|
6166
|
+
},
|
|
6167
|
+
donorGeographyData: donorGeographyData
|
|
6189
6168
|
})
|
|
6190
6169
|
}), /*#__PURE__*/jsx(Grid, {
|
|
6191
6170
|
item: true,
|