@local-civics/mgmt-ui 0.1.147 → 0.1.149

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.mjs CHANGED
@@ -484,7 +484,8 @@ const StatsGroup = ({ data, footer }) => {
484
484
  }
485
485
  return stat.value;
486
486
  })();
487
- return /* @__PURE__ */ React.createElement("div", { key: stat.title, className: classes.stat }, /* @__PURE__ */ React.createElement(Text, { className: classes.count }, value.toLocaleString(), stat.unit), /* @__PURE__ */ React.createElement(Text, { className: classes.title }, stat.title));
487
+ const safeValue = Number.isFinite(value) ? value : 0;
488
+ return /* @__PURE__ */ React.createElement("div", { key: stat.title, className: classes.stat }, /* @__PURE__ */ React.createElement(Text, { className: classes.count }, safeValue.toLocaleString(), stat.unit), /* @__PURE__ */ React.createElement(Text, { className: classes.title }, stat.title));
488
489
  });
489
490
  return /* @__PURE__ */ React.createElement("div", { className: classes.root }, stats, footer);
490
491
  };
@@ -1030,10 +1031,10 @@ function Table$b(props) {
1030
1031
  );
1031
1032
  }
1032
1033
  const openDeleteModal = (student) => openConfirmModal({
1033
- title: `Delete "${student.givenName && student.familyName ? `${student.givenName} ${student.familyName}` : student.email}"?`,
1034
+ title: `Remove "${student.givenName && student.familyName ? `${student.givenName} ${student.familyName}` : student.email}" from this class?`,
1034
1035
  centered: true,
1035
- children: /* @__PURE__ */ React.createElement(Text, { size: "sm" }, "Are you sure you want to delete this person? This action is destructive and you will have to contact support to restore your data."),
1036
- labels: { confirm: "Delete", cancel: "No don't delete them" },
1036
+ children: /* @__PURE__ */ React.createElement(Text, { size: "sm" }, "Click confirm if you want to remove the student from this specific class. This will NOT remove the student from the Tech Platform."),
1037
+ labels: { confirm: "Remove Student", cancel: "Cancel" },
1037
1038
  confirmProps: { color: "red" },
1038
1039
  onConfirm: () => props.onDelete && props.onDelete(student)
1039
1040
  });
@@ -2238,10 +2239,10 @@ function Table$3(props) {
2238
2239
  );
2239
2240
  }
2240
2241
  const openDeleteModal = (student) => openConfirmModal({
2241
- title: `Delete "${student.givenName && student.familyName ? `${student.givenName} ${student.familyName}` : student.email}"?`,
2242
+ title: `Remove "${student.givenName && student.familyName ? `${student.givenName} ${student.familyName}` : student.email}" from this class?`,
2242
2243
  centered: true,
2243
- children: /* @__PURE__ */ React.createElement(Text, { size: "sm" }, "Are you sure you want to delete this person? This action is destructive and you will have to contact support to restore your data."),
2244
- labels: { confirm: "Delete", cancel: "No don't delete them" },
2244
+ children: /* @__PURE__ */ React.createElement(Text, { size: "sm" }, "Click confirm if you want to remove the student from this specific class. This will NOT remove the student from the Tech Platform."),
2245
+ labels: { confirm: "Remove Student", cancel: "Cancel" },
2245
2246
  confirmProps: { color: "red" },
2246
2247
  onConfirm: () => props.onDelete && props.onDelete(student)
2247
2248
  });