@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.js
CHANGED
|
@@ -504,7 +504,8 @@ const StatsGroup = ({ data, footer }) => {
|
|
|
504
504
|
}
|
|
505
505
|
return stat.value;
|
|
506
506
|
})();
|
|
507
|
-
|
|
507
|
+
const safeValue = Number.isFinite(value) ? value : 0;
|
|
508
|
+
return /* @__PURE__ */ React__namespace.createElement("div", { key: stat.title, className: classes.stat }, /* @__PURE__ */ React__namespace.createElement(core.Text, { className: classes.count }, safeValue.toLocaleString(), stat.unit), /* @__PURE__ */ React__namespace.createElement(core.Text, { className: classes.title }, stat.title));
|
|
508
509
|
});
|
|
509
510
|
return /* @__PURE__ */ React__namespace.createElement("div", { className: classes.root }, stats, footer);
|
|
510
511
|
};
|
|
@@ -1050,10 +1051,10 @@ function Table$b(props) {
|
|
|
1050
1051
|
);
|
|
1051
1052
|
}
|
|
1052
1053
|
const openDeleteModal = (student) => modals.openConfirmModal({
|
|
1053
|
-
title: `
|
|
1054
|
+
title: `Remove "${student.givenName && student.familyName ? `${student.givenName} ${student.familyName}` : student.email}" from this class?`,
|
|
1054
1055
|
centered: true,
|
|
1055
|
-
children: /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "sm" }, "
|
|
1056
|
-
labels: { confirm: "
|
|
1056
|
+
children: /* @__PURE__ */ React__namespace.createElement(core.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."),
|
|
1057
|
+
labels: { confirm: "Remove Student", cancel: "Cancel" },
|
|
1057
1058
|
confirmProps: { color: "red" },
|
|
1058
1059
|
onConfirm: () => props.onDelete && props.onDelete(student)
|
|
1059
1060
|
});
|
|
@@ -2258,10 +2259,10 @@ function Table$3(props) {
|
|
|
2258
2259
|
);
|
|
2259
2260
|
}
|
|
2260
2261
|
const openDeleteModal = (student) => modals.openConfirmModal({
|
|
2261
|
-
title: `
|
|
2262
|
+
title: `Remove "${student.givenName && student.familyName ? `${student.givenName} ${student.familyName}` : student.email}" from this class?`,
|
|
2262
2263
|
centered: true,
|
|
2263
|
-
children: /* @__PURE__ */ React__namespace.createElement(core.Text, { size: "sm" }, "
|
|
2264
|
-
labels: { confirm: "
|
|
2264
|
+
children: /* @__PURE__ */ React__namespace.createElement(core.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."),
|
|
2265
|
+
labels: { confirm: "Remove Student", cancel: "Cancel" },
|
|
2265
2266
|
confirmProps: { color: "red" },
|
|
2266
2267
|
onConfirm: () => props.onDelete && props.onDelete(student)
|
|
2267
2268
|
});
|