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