@local-civics/mgmt-ui 0.1.135 → 0.1.137
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 +1 -0
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1478,7 +1478,6 @@ function Table$7(props) {
|
|
|
1478
1478
|
const Student = (props) => {
|
|
1479
1479
|
const [tab, setTab] = React.useState("badges");
|
|
1480
1480
|
const numberOfBadges = props.badges.length;
|
|
1481
|
-
const percentageOfBadgesEarned = numberOfBadges > 0 ? props.badges.filter((b) => b.isComplete).length / numberOfBadges : 0;
|
|
1482
1481
|
return /* @__PURE__ */ React__namespace.createElement(core.Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid, { gutter: "md" }, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { sm: "auto" }, /* @__PURE__ */ React__namespace.createElement(core.UnstyledButton, { onClick: props.onBackClick }, /* @__PURE__ */ React__namespace.createElement(
|
|
1483
1482
|
core.Badge,
|
|
1484
1483
|
{
|
|
@@ -1501,13 +1500,13 @@ const Student = (props) => {
|
|
|
1501
1500
|
},
|
|
1502
1501
|
{
|
|
1503
1502
|
title: "LESSON COMPLETION",
|
|
1504
|
-
value: props.
|
|
1505
|
-
unit: "
|
|
1503
|
+
value: props.numberOfLessonsCompleted,
|
|
1504
|
+
unit: ""
|
|
1506
1505
|
},
|
|
1507
1506
|
{
|
|
1508
1507
|
title: "BADGE COMPLETION",
|
|
1509
|
-
value:
|
|
1510
|
-
unit: "
|
|
1508
|
+
value: numberOfBadges,
|
|
1509
|
+
unit: ""
|
|
1511
1510
|
}
|
|
1512
1511
|
] }), /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(
|
|
1513
1512
|
Tabs,
|