@ammarkhalidfarooq/dashboard-package 0.4.13 → 0.4.14

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
@@ -5693,6 +5693,7 @@ var OverallSection = function OverallSection(_ref) {
5693
5693
  var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
5694
5694
  var trafficSourceData = (apiData === null || apiData === void 0 ? void 0 : apiData.trafficSource) || [];
5695
5695
  var orderBumpData = (apiData === null || apiData === void 0 ? void 0 : apiData.orderBumpData) || [];
5696
+ var upsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.upsellData) || [];
5696
5697
  var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
5697
5698
  var getExtendedCharts = function getExtendedCharts() {
5698
5699
  var charts = _toConsumableArray(allCharts);
@@ -6231,11 +6232,11 @@ var OverallSection = function OverallSection(_ref) {
6231
6232
  children: /*#__PURE__*/jsx(MetricDonutCard, {
6232
6233
  title: "Upsell",
6233
6234
  subtitle: "Acceptance & raised",
6234
- acceptanceRate: 34,
6235
- acceptanceVal: "34.2%",
6236
- acceptanceTrend: "4.1%",
6237
- raisedVal: "$28.4K",
6238
- raisedTrend: "11.3%"
6235
+ acceptanceRate: (upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceRate) || 0,
6236
+ acceptanceVal: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceVal) || 0), "%"),
6237
+ acceptanceTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceTrend) || 0), "%"),
6238
+ raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedVal) || 0)),
6239
+ raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%")
6239
6240
  })
6240
6241
  }), /*#__PURE__*/jsx(Grid, {
6241
6242
  item: true,