@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.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
- var data = [{
1669
- country: "United States",
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",
@@ -1728,7 +1705,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref3) {
1728
1705
  }
1729
1706
  }
1730
1707
  })
1731
- }), /*#__PURE__*/jsx(Typography, {
1708
+ }), /*#__PURE__*/jsxs(Typography, {
1732
1709
  sx: {
1733
1710
  fontSize: "13px",
1734
1711
  fontWeight: 700,
@@ -1736,7 +1713,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref3) {
1736
1713
  minWidth: "60px",
1737
1714
  textAlign: "right"
1738
1715
  },
1739
- children: item.value
1716
+ children: [item.value, " \xB7 ", item.percentage, "%"]
1740
1717
  })]
1741
1718
  }, index);
1742
1719
  })
@@ -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,