@local-civics/mgmt-ui 0.1.151 → 0.1.152
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.d.ts +6 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1461,6 +1461,7 @@ function Table$7(props) {
|
|
|
1461
1461
|
const Student = (props) => {
|
|
1462
1462
|
const [tab, setTab] = useState("badges");
|
|
1463
1463
|
const numberOfBadgesCompleted = props.badges.length > 0 ? props.badges.filter((b) => b.isComplete).length : 0;
|
|
1464
|
+
const TEMPORARY_numberOfLessonsCompleted = props.lessons.filter((l) => l.isComplete).length;
|
|
1464
1465
|
return /* @__PURE__ */ React.createElement(Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React.createElement(Stack$4, { spacing: "md" }, /* @__PURE__ */ React.createElement(Grid, { gutter: "md" }, /* @__PURE__ */ React.createElement(Grid.Col, { sm: "auto" }, /* @__PURE__ */ React.createElement(UnstyledButton, { onClick: props.onBackClick }, /* @__PURE__ */ React.createElement(
|
|
1465
1466
|
Badge$1,
|
|
1466
1467
|
{
|
|
@@ -1483,7 +1484,7 @@ const Student = (props) => {
|
|
|
1483
1484
|
},
|
|
1484
1485
|
{
|
|
1485
1486
|
title: "LESSON COMPLETION",
|
|
1486
|
-
value:
|
|
1487
|
+
value: TEMPORARY_numberOfLessonsCompleted,
|
|
1487
1488
|
unit: ""
|
|
1488
1489
|
},
|
|
1489
1490
|
{
|