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