@local-civics/mgmt-ui 0.1.69 → 0.1.70
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1023,7 +1023,7 @@ const SplitButton$2 = (props) => {
|
|
|
1023
1023
|
leftIcon: /* @__PURE__ */ React.createElement(IconPlaylistAdd, { size: 14 }),
|
|
1024
1024
|
onClick: props.onAddMembersClick
|
|
1025
1025
|
},
|
|
1026
|
-
"Add
|
|
1026
|
+
"Add students"
|
|
1027
1027
|
), hasMenu && /* @__PURE__ */ React.createElement(Menu, { transition: "pop", position: "bottom-end" }, /* @__PURE__ */ React.createElement(Menu.Target, null, /* @__PURE__ */ React.createElement(
|
|
1028
1028
|
ActionIcon,
|
|
1029
1029
|
{
|
|
@@ -1067,9 +1067,9 @@ function Table$8(props) {
|
|
|
1067
1067
|
Select,
|
|
1068
1068
|
{
|
|
1069
1069
|
size: "sm",
|
|
1070
|
-
value: row.isAdmin ? "admin" : "
|
|
1070
|
+
value: row.isAdmin ? "admin" : "student",
|
|
1071
1071
|
onChange: (value) => props.onRoleChange && props.onRoleChange(row, value),
|
|
1072
|
-
data: [{ value: "
|
|
1072
|
+
data: [{ value: "student", label: "Student" }, { value: "admin", label: "Admin" }]
|
|
1073
1073
|
}
|
|
1074
1074
|
))), /* @__PURE__ */ React.createElement("td", null, row.badgesEarned), /* @__PURE__ */ React.createElement("td", null, row.lessonsCompleted), /* @__PURE__ */ React.createElement("td", null, row.hasAccount && /* @__PURE__ */ React.createElement(IconCheck, { color: "green" })), /* @__PURE__ */ React.createElement("td", null, row.lastActivity ? relativeTimeFromDates(row.lastActivity) : ""), /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Group, { noWrap: true, spacing: 0, position: "right" }, !row.readonly && !!props.onDelete && /* @__PURE__ */ React.createElement(ActionIcon, { color: "red" }, /* @__PURE__ */ React.createElement(IconTrash, { onClick: () => openDeleteModal(row), size: 16, stroke: 1.5 }))))));
|
|
1075
1075
|
return /* @__PURE__ */ React.createElement(ScrollArea, null, /* @__PURE__ */ React.createElement(Table$h, { verticalSpacing: 20, sx: { minWidth: 700 }, highlightOnHover: true, striped: true }, /* @__PURE__ */ React.createElement("thead", null, /* @__PURE__ */ React.createElement("tr", null, /* @__PURE__ */ React.createElement("th", null, "Name"), /* @__PURE__ */ React.createElement("th", null, "Role"), /* @__PURE__ */ React.createElement("th", null, "Badges Earned"), /* @__PURE__ */ React.createElement("th", null, "Lessons Completed"), /* @__PURE__ */ React.createElement("th", null, "Account Created?"), /* @__PURE__ */ React.createElement("th", null, "Last Active"), /* @__PURE__ */ React.createElement("th", null))), /* @__PURE__ */ React.createElement("tbody", null, rows)));
|
|
@@ -1155,7 +1155,7 @@ const Class = (props) => {
|
|
|
1155
1155
|
{
|
|
1156
1156
|
opened,
|
|
1157
1157
|
onClose: () => setOpened(false),
|
|
1158
|
-
title: /* @__PURE__ */ React.createElement(Title, { size: "h5" }, "Add
|
|
1158
|
+
title: /* @__PURE__ */ React.createElement(Title, { size: "h5" }, "Add students"),
|
|
1159
1159
|
padding: "xl",
|
|
1160
1160
|
size: "xl"
|
|
1161
1161
|
},
|