@ammarkhalidfarooq/dashboard-package 0.3.11 → 0.3.13
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/README.md +38 -38
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4739,7 +4739,7 @@ function formatNumber(num) {
|
|
|
4739
4739
|
}
|
|
4740
4740
|
|
|
4741
4741
|
var OverallSection = function OverallSection(_ref) {
|
|
4742
|
-
var
|
|
4742
|
+
var _Number;
|
|
4743
4743
|
var _ref$apiData = _ref.apiData,
|
|
4744
4744
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
|
|
4745
4745
|
primaryCharts = _ref.primaryCharts,
|
|
@@ -4789,10 +4789,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4789
4789
|
}
|
|
4790
4790
|
return charts;
|
|
4791
4791
|
};
|
|
4792
|
+
console.log("API DATA", apiData);
|
|
4792
4793
|
var metricInfo = {
|
|
4793
4794
|
"Total Raised": {
|
|
4794
4795
|
value: "$".concat(formatNumber(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedCard)) || "$240.9K",
|
|
4795
|
-
subValue: "".concat(apiData === null || apiData === void 0
|
|
4796
|
+
subValue: "".concat((_Number = Number(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedPrev)) === null || _Number === void 0 ? void 0 : _Number.toFixed(2), "% vs ").concat(dateName) || "18% vs last month",
|
|
4796
4797
|
label: "Total Revenue",
|
|
4797
4798
|
icon: PaidOutlined
|
|
4798
4799
|
},
|