@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 CHANGED
@@ -365,6 +365,7 @@ type StudentProps = {
365
365
  impactStatement: string;
366
366
  numberOfProblemsSolved: number;
367
367
  percentageOfLessonsCompleted: number;
368
+ numberOfLessonsCompleted: number;
368
369
  badges: Item$c[];
369
370
  answers: Item$b[];
370
371
  reflections: Item$a[];
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.percentageOfLessonsCompleted,
1505
- unit: "%"
1503
+ value: props.numberOfLessonsCompleted,
1504
+ unit: ""
1506
1505
  },
1507
1506
  {
1508
1507
  title: "BADGE COMPLETION",
1509
- value: percentageOfBadgesEarned,
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,