@ammarkhalidfarooq/dashboard-package 0.5.21 → 0.5.22
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 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -6
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8063,6 +8063,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8063
8063
|
var organicUsersSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.organicUsers);
|
|
8064
8064
|
var donationsSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalDonations);
|
|
8065
8065
|
var conversionSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.conversionRate);
|
|
8066
|
+
var revenueSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalRevenue);
|
|
8067
|
+
var avgDonationSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.avdDonations);
|
|
8066
8068
|
var fallbackCategories = organicUsersSeries.categories.length ? organicUsersSeries.categories : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
8067
8069
|
var growthCaption = function growthCaption(key) {
|
|
8068
8070
|
return formatGrowth(growth[key], dateName);
|
|
@@ -8133,11 +8135,11 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8133
8135
|
}
|
|
8134
8136
|
};
|
|
8135
8137
|
}
|
|
8136
|
-
|
|
8138
|
+
organicUsersSeries.data.length > 0 ? organicUsersSeries.data.map(function () {
|
|
8137
8139
|
var _overview$totalRevenu;
|
|
8138
8140
|
return (_overview$totalRevenu = overview.totalRevenue) !== null && _overview$totalRevenu !== void 0 ? _overview$totalRevenu : 0;
|
|
8139
8141
|
}) : [(_overview$totalRevenu2 = overview.totalRevenue) !== null && _overview$totalRevenu2 !== void 0 ? _overview$totalRevenu2 : 0];
|
|
8140
|
-
|
|
8142
|
+
organicUsersSeries.data.length > 0 ? organicUsersSeries.data.map(function () {
|
|
8141
8143
|
var _overview$overallAVGD;
|
|
8142
8144
|
return (_overview$overallAVGD = overview.overallAVGDonations) !== null && _overview$overallAVGD !== void 0 ? _overview$overallAVGD : 0;
|
|
8143
8145
|
}) : [(_overview$overallAVGD2 = overview.overallAVGDonations) !== null && _overview$overallAVGD2 !== void 0 ? _overview$overallAVGD2 : 0];
|
|
@@ -8187,8 +8189,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8187
8189
|
"Revenue raised": {
|
|
8188
8190
|
value: "$".concat(formatNumber((_overview$totalRevenu3 = overview.totalRevenue) !== null && _overview$totalRevenu3 !== void 0 ? _overview$totalRevenu3 : 0)),
|
|
8189
8191
|
subValue: growthCaption("totalRevenue"),
|
|
8190
|
-
data:
|
|
8191
|
-
categories:
|
|
8192
|
+
data: revenueSeries.data,
|
|
8193
|
+
categories: revenueSeries.categories,
|
|
8192
8194
|
icon: /*#__PURE__*/jsx(PaidOutlined, {}),
|
|
8193
8195
|
money: true,
|
|
8194
8196
|
warning: false,
|
|
@@ -8197,8 +8199,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8197
8199
|
"Avg donation": {
|
|
8198
8200
|
value: "$".concat(formatNumber((_overview$overallAVGD3 = overview.overallAVGDonations) !== null && _overview$overallAVGD3 !== void 0 ? _overview$overallAVGD3 : 0)),
|
|
8199
8201
|
subValue: growthCaption("overallAVGDonations"),
|
|
8200
|
-
data:
|
|
8201
|
-
categories:
|
|
8202
|
+
data: avgDonationSeries.data,
|
|
8203
|
+
categories: avgDonationSeries.categories,
|
|
8202
8204
|
icon: /*#__PURE__*/jsx(PaidOutlined, {}),
|
|
8203
8205
|
money: true,
|
|
8204
8206
|
warning: false,
|