@local-civics/mgmt-ui 0.1.150 → 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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1460,7 +1460,8 @@ function Table$7(props) {
|
|
|
1460
1460
|
|
|
1461
1461
|
const Student = (props) => {
|
|
1462
1462
|
const [tab, setTab] = useState("badges");
|
|
1463
|
-
const
|
|
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,12 +1484,12 @@ 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
|
{
|
|
1490
1491
|
title: "BADGE COMPLETION",
|
|
1491
|
-
value:
|
|
1492
|
+
value: numberOfBadgesCompleted,
|
|
1492
1493
|
unit: ""
|
|
1493
1494
|
}
|
|
1494
1495
|
] }), /* @__PURE__ */ React.createElement(Stack$4, { spacing: 0 }, /* @__PURE__ */ React.createElement(
|