@ammarkhalidfarooq/dashboard-package 0.3.37 → 0.3.38
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, _apiData$averageDonat, _apiData$averageDonat2;
|
|
5432
|
+
var _apiData$totalRaisedP, _apiData$netRaisedCar, _apiData$netRaisedPre, _apiData$averageDonat, _apiData$averageDonat2, _apiData$roasCard, _apiData$roasCardPrev;
|
|
5433
5433
|
var _ref$apiData = _ref.apiData,
|
|
5434
5434
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
|
|
5435
5435
|
primaryCharts = _ref.primaryCharts,
|
|
@@ -5506,8 +5506,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5506
5506
|
icon: iconsMaterial.PaidOutlined
|
|
5507
5507
|
},
|
|
5508
5508
|
"ROAS": {
|
|
5509
|
-
value: (apiData === null || apiData === void 0 ? void 0 : apiData.roasCard)
|
|
5510
|
-
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.
|
|
5509
|
+
value: "".concat(formatNumber((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0), "x"),
|
|
5510
|
+
subValue: "".concat(Number((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0).toFixed(2), "x vs ").concat(dateName !== null && dateName !== void 0 ? dateName : "last month"),
|
|
5511
5511
|
label: "ROAS",
|
|
5512
5512
|
icon: iconsMaterial.TrendingUp
|
|
5513
5513
|
},
|