@local-civics/mgmt-ui 0.1.149 → 0.1.151
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1480,7 +1480,7 @@ function Table$7(props) {
|
|
|
1480
1480
|
|
|
1481
1481
|
const Student = (props) => {
|
|
1482
1482
|
const [tab, setTab] = React.useState("badges");
|
|
1483
|
-
const
|
|
1483
|
+
const numberOfBadgesCompleted = props.badges.length > 0 ? props.badges.filter((b) => b.isComplete).length : 0;
|
|
1484
1484
|
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(
|
|
1485
1485
|
core.Badge,
|
|
1486
1486
|
{
|
|
@@ -1508,7 +1508,7 @@ const Student = (props) => {
|
|
|
1508
1508
|
},
|
|
1509
1509
|
{
|
|
1510
1510
|
title: "BADGE COMPLETION",
|
|
1511
|
-
value:
|
|
1511
|
+
value: numberOfBadgesCompleted,
|
|
1512
1512
|
unit: ""
|
|
1513
1513
|
}
|
|
1514
1514
|
] }), /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(
|