@ammarkhalidfarooq/dashboard-package 0.3.36 → 0.3.37
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 +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5429,7 +5429,7 @@ function formatNumber(num) {
|
|
|
5429
5429
|
}
|
|
5430
5430
|
|
|
5431
5431
|
var OverallSection = function OverallSection(_ref) {
|
|
5432
|
-
var _apiData$totalRaisedP, _apiData$netRaisedCar, _apiData$netRaisedPre;
|
|
5432
|
+
var _apiData$totalRaisedP, _apiData$netRaisedCar, _apiData$netRaisedPre, _apiData$averageDonat, _apiData$averageDonat2;
|
|
5433
5433
|
var _ref$apiData = _ref.apiData,
|
|
5434
5434
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
|
|
5435
5435
|
primaryCharts = _ref.primaryCharts,
|
|
@@ -5500,8 +5500,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5500
5500
|
icon: iconsMaterial.PeopleAltOutlined
|
|
5501
5501
|
},
|
|
5502
5502
|
"Avg donation": {
|
|
5503
|
-
value: (apiData === null || apiData === void 0 ? void 0 : apiData.
|
|
5504
|
-
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.
|
|
5503
|
+
value: "$".concat(formatNumber((_apiData$averageDonat = apiData === null || apiData === void 0 ? void 0 : apiData.averageDonationsCard) !== null && _apiData$averageDonat !== void 0 ? _apiData$averageDonat : 0)),
|
|
5504
|
+
subValue: "".concat(Number((_apiData$averageDonat2 = apiData === null || apiData === void 0 ? void 0 : apiData.averageDonationsCardPrev) !== null && _apiData$averageDonat2 !== void 0 ? _apiData$averageDonat2 : 0).toFixed(2), "% vs ").concat(dateName !== null && dateName !== void 0 ? dateName : "last month"),
|
|
5505
5505
|
label: "Average Donation Amount",
|
|
5506
5506
|
icon: iconsMaterial.PaidOutlined
|
|
5507
5507
|
},
|