@nualang/nualang-ui-components 0.1.1196 → 0.1.1197

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.
@@ -16,6 +16,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
16
16
 
17
17
  function CreateMeetingMultiStepForm({
18
18
  handleSubmit,
19
+ onGroupAssignmentChange,
19
20
  values = {
20
21
  meetingTopic: "1111",
21
22
  t: x => x,
@@ -51,6 +52,7 @@ function CreateMeetingMultiStepForm({
51
52
  initialValues: values,
52
53
  altValues: values,
53
54
  onSubmit: handleSubmit,
55
+ onGroupAssignmentChange: onGroupAssignmentChange,
54
56
  dialogTitle: dialogTitle,
55
57
  open: open,
56
58
  loading: loading
@@ -61,6 +63,7 @@ function CreateMeetingMultiStepForm({
61
63
  t: t,
62
64
  handleClose: handleClose,
63
65
  initialValues: values,
64
- onSubmit: handleSubmit
66
+ onSubmit: handleSubmit,
67
+ onGroupAssignmentChange: onGroupAssignmentChange
65
68
  });
66
69
  }
@@ -313,7 +313,7 @@ function Classroom({
313
313
  getCourseMembers,
314
314
  memberId,
315
315
  username,
316
- subscription,
316
+ subscription = false,
317
317
  creatorSubscription,
318
318
  fetchMemberCourseCompletions,
319
319
  mainSiteUrl,
@@ -41,7 +41,6 @@ const SubmissionsTableCards = (0, _mui.withStyles)(({
41
41
  const [cardsToShow, setCardsToShow] = (0, _react.useState)(3);
42
42
  const [attendeesData, setAttendeesData] = (0, _react.useState)([]);
43
43
  const [isDialogOpen, setDialogOpen] = (0, _react.useState)(false);
44
- const [meetingCounts, setMeetingCounts] = (0, _react.useState)({});
45
44
  const [groupedId, setGroupedId] = (0, _react.useState)("");
46
45
  (0, _react.useEffect)(() => {
47
46
  if (meetingRecsData) {
@@ -90,11 +89,9 @@ const SubmissionsTableCards = (0, _mui.withStyles)(({
90
89
  uniqueSubmissions?.forEach(item => {
91
90
  counts[item.groupedId] = (counts[item.groupedId] || 0) + 1;
92
91
  });
93
- setMeetingCounts(counts);
92
+ return counts;
94
93
  };
95
- (0, _react.useEffect)(() => {
96
- calculateMeetingCounts();
97
- }, [uniqueSubmissions]);
94
+ const meetingCounts = calculateMeetingCounts();
98
95
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
99
96
  sx: {
100
97
  marginBottom: 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1196",
3
+ "version": "0.1.1197",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",