@ammarkhalidfarooq/dashboard-package 0.6.10 → 0.6.11
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
|
@@ -15644,9 +15644,9 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
15644
15644
|
}), /*#__PURE__*/jsxRuntime.jsx(OverallDetailsGrid, {
|
|
15645
15645
|
activeCampaignsRows: activeCampaignsData.map(function (campaign) {
|
|
15646
15646
|
return {
|
|
15647
|
-
id: campaign.
|
|
15647
|
+
id: campaign.title ? campaign.title.trim().split(/\s+/).slice(0, 2).filter(Boolean).map(function (word) {
|
|
15648
15648
|
return word[0];
|
|
15649
|
-
}).join("").toUpperCase()
|
|
15649
|
+
}).join("").toUpperCase() : "??",
|
|
15650
15650
|
name: campaign.title || "Untitled Campaign",
|
|
15651
15651
|
val1: "$".concat(formatNumber(campaign.collectedAmount || 0)),
|
|
15652
15652
|
type: "progress",
|