@ammarkhalidfarooq/dashboard-package 0.6.121 → 0.6.122

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 CHANGED
@@ -19601,9 +19601,9 @@ var EmailSection = function EmailSection(_ref) {
19601
19601
  _ref$numberOfDays = _ref.numberOfDays,
19602
19602
  numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
19603
19603
  var _useState = React.useState("Total Raised"),
19604
- _useState2 = _slicedToArray(_useState, 2),
19605
- activeMetric = _useState2[0],
19606
- setActiveMetric = _useState2[1];
19604
+ _useState2 = _slicedToArray(_useState, 2);
19605
+ _useState2[0];
19606
+ _useState2[1];
19607
19607
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
19608
19608
  var overview = (apiData === null || apiData === void 0 ? void 0 : apiData.overview) || {};
19609
19609
  var overviewGrowth = (overview === null || overview === void 0 ? void 0 : overview.growthPercentage) || {};
@@ -19832,11 +19832,10 @@ var EmailSection = function EmailSection(_ref) {
19832
19832
  value: metricInfo[title].value,
19833
19833
  caption: metricInfo[title].subValue,
19834
19834
  icon: metricInfo[title].icon,
19835
- error: metricInfo[title].error,
19836
- active: activeMetric === title,
19837
- onClick: function onClick() {
19838
- return setActiveMetric(title);
19839
- },
19835
+ error: metricInfo[title].error
19836
+ // active={activeMetric === title}
19837
+ // onClick={() => setActiveMetric(title)}
19838
+ ,
19840
19839
  sx: metricInfo[title].error ? {
19841
19840
  border: "2px solid #ef4444",
19842
19841
  bgcolor: "#fffafa"