@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.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -484,7 +484,8 @@ const StatsGroup = ({ data, footer }) => {
|
|
|
484
484
|
}
|
|
485
485
|
return stat.value;
|
|
486
486
|
})();
|
|
487
|
-
|
|
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: `
|
|
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" }, "
|
|
1036
|
-
labels: { confirm: "
|
|
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: `
|
|
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" }, "
|
|
2244
|
-
labels: { confirm: "
|
|
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
|
});
|