@ammarkhalidfarooq/dashboard-package 0.3.13 → 0.3.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.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4741,7 +4741,7 @@ function formatNumber(num) {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
|
|
4743
4743
|
var OverallSection = function OverallSection(_ref) {
|
|
4744
|
-
var
|
|
4744
|
+
var _apiData$totalRaisedP;
|
|
4745
4745
|
var _ref$apiData = _ref.apiData,
|
|
4746
4746
|
apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
|
|
4747
4747
|
primaryCharts = _ref.primaryCharts,
|
|
@@ -4795,7 +4795,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4795
4795
|
var metricInfo = {
|
|
4796
4796
|
"Total Raised": {
|
|
4797
4797
|
value: "$".concat(formatNumber(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedCard)) || "$240.9K",
|
|
4798
|
-
subValue: "".concat((
|
|
4798
|
+
subValue: "".concat(Number((_apiData$totalRaisedP = apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedPrev) !== null && _apiData$totalRaisedP !== void 0 ? _apiData$totalRaisedP : 0).toFixed(2), "% vs ").concat(dateName || "last month"),
|
|
4799
4799
|
label: "Total Revenue",
|
|
4800
4800
|
icon: iconsMaterial.PaidOutlined
|
|
4801
4801
|
},
|