@ammarkhalidfarooq/dashboard-package 0.4.4 → 0.4.6
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 +8 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -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",
|
|
@@ -1730,7 +1707,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref3) {
|
|
|
1730
1707
|
}
|
|
1731
1708
|
}
|
|
1732
1709
|
})
|
|
1733
|
-
}), /*#__PURE__*/jsxRuntime.
|
|
1710
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(material.Typography, {
|
|
1734
1711
|
sx: {
|
|
1735
1712
|
fontSize: "13px",
|
|
1736
1713
|
fontWeight: 700,
|
|
@@ -1738,7 +1715,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref3) {
|
|
|
1738
1715
|
minWidth: "60px",
|
|
1739
1716
|
textAlign: "right"
|
|
1740
1717
|
},
|
|
1741
|
-
children: item.value
|
|
1718
|
+
children: [item.value, " \xB7 ", item.percentage, "%"]
|
|
1742
1719
|
})]
|
|
1743
1720
|
}, index);
|
|
1744
1721
|
})
|
|
@@ -5697,6 +5674,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5697
5674
|
activeMetric = _useState2[0],
|
|
5698
5675
|
setActiveMetric = _useState2[1];
|
|
5699
5676
|
var donationTypeData = (apiData === null || apiData === void 0 ? void 0 : apiData.donationTypeData) || [];
|
|
5677
|
+
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
|
|
5700
5678
|
var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
|
|
5701
5679
|
var getExtendedCharts = function getExtendedCharts() {
|
|
5702
5680
|
var charts = _toConsumableArray(allCharts);
|
|
@@ -6187,7 +6165,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6187
6165
|
children: /*#__PURE__*/jsxRuntime.jsx(PaidDonorGeographyCard, {
|
|
6188
6166
|
sx: {
|
|
6189
6167
|
height: 330
|
|
6190
|
-
}
|
|
6168
|
+
},
|
|
6169
|
+
donorGeographyData: donorGeographyData
|
|
6191
6170
|
})
|
|
6192
6171
|
}), /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
|
|
6193
6172
|
item: true,
|