@ammarkhalidfarooq/dashboard-package 0.4.0 → 0.4.2
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 +10 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5185,6 +5185,7 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
|
|
|
5185
5185
|
var sx = _ref.sx,
|
|
5186
5186
|
_ref$donationTypeData = _ref.donationTypeData,
|
|
5187
5187
|
donationTypeData = _ref$donationTypeData === void 0 ? [] : _ref$donationTypeData;
|
|
5188
|
+
console.log("CHART DATA", donationTypeData);
|
|
5188
5189
|
var recurringColor = (donationTypeData === null || donationTypeData === void 0 || (_donationTypeData$sum = donationTypeData.summary) === null || _donationTypeData$sum === void 0 || (_donationTypeData$sum = _donationTypeData$sum.recurring) === null || _donationTypeData$sum === void 0 ? void 0 : _donationTypeData$sum.color) || "rgb(99, 99, 230)";
|
|
5189
5190
|
var oneTimeColor = (donationTypeData === null || donationTypeData === void 0 || (_donationTypeData$sum2 = donationTypeData.summary) === null || _donationTypeData$sum2 === void 0 || (_donationTypeData$sum2 = _donationTypeData$sum2.oneTime) === null || _donationTypeData$sum2 === void 0 ? void 0 : _donationTypeData$sum2.color) || "#10B981";
|
|
5190
5191
|
var chartOptions = {
|
|
@@ -5282,7 +5283,13 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
|
|
|
5282
5283
|
}
|
|
5283
5284
|
}
|
|
5284
5285
|
};
|
|
5285
|
-
var series = (donationTypeData === null || donationTypeData === void 0 ? void 0 : donationTypeData.series) || [
|
|
5286
|
+
var series = (donationTypeData === null || donationTypeData === void 0 ? void 0 : donationTypeData.series) || [{
|
|
5287
|
+
name: "Recurring",
|
|
5288
|
+
data: [9.2, 11.8, 13.4, 4.9]
|
|
5289
|
+
}, {
|
|
5290
|
+
name: "One-time",
|
|
5291
|
+
data: [32.4, 41.2, 46.8, 14.3]
|
|
5292
|
+
}];
|
|
5286
5293
|
return /*#__PURE__*/jsxRuntime.jsxs(material.Card, {
|
|
5287
5294
|
sx: _objectSpread2({
|
|
5288
5295
|
bgcolor: "#fff",
|
|
@@ -5735,7 +5742,6 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5735
5742
|
}
|
|
5736
5743
|
return charts;
|
|
5737
5744
|
};
|
|
5738
|
-
console.log("API DATA", apiData);
|
|
5739
5745
|
var metricInfo = {
|
|
5740
5746
|
"Total Raised": {
|
|
5741
5747
|
value: "$".concat(formatNumber(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedCard)) || "$240.9K",
|
|
@@ -6078,6 +6084,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6078
6084
|
value: selectedInfo.value,
|
|
6079
6085
|
trend: selectedInfo.subValue
|
|
6080
6086
|
});
|
|
6087
|
+
console.log("Donation Type Data", donationTypeData);
|
|
6088
|
+
console.log("API DATA", apiData);
|
|
6081
6089
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
6082
6090
|
children: [/*#__PURE__*/jsxRuntime.jsx(material.Box, {
|
|
6083
6091
|
sx: {
|