@nualang/nualang-ui-components 0.1.1196 → 0.1.1198

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.
@@ -42,7 +42,7 @@ function Customization({
42
42
  fileSizeLimit: fileSizeLimit,
43
43
  previewComponent: _PreviewCard.default,
44
44
  isBanner: false
45
- }))), isUpdateCourse ? /*#__PURE__*/_react.default.createElement(_material.Grid, {
45
+ }))), /*#__PURE__*/_react.default.createElement(_material.Grid, {
46
46
  item: true,
47
47
  md: 6
48
48
  }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
@@ -59,7 +59,7 @@ function Customization({
59
59
  previewComponent: _PreviewCard.default,
60
60
  isBanner: true,
61
61
  aspect: 16 / 2.5
62
- }))) : null));
62
+ })))));
63
63
  }
64
64
  Customization.propTypes = {};
65
65
  Customization.label = "customization";
@@ -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,
@@ -964,8 +964,8 @@ function GenerateAudio({
964
964
  }
965
965
  if (generateTxt) {
966
966
  const fileNameWithoutExtension = row.fileName.replace(".mp3", "");
967
- const txtContent = `${phrase}\n`;
968
- folder.file(`${fileNameWithoutExtension}.txt`, txtContent);
967
+ const txtContentWithoutQuotes = `${phrase}\n`.replace(/"/g, "");
968
+ folder.file(`${fileNameWithoutExtension}.txt`, txtContentWithoutQuotes);
969
969
  }
970
970
  if (fileNameCount[fileNameWithExtension]) {
971
971
  fileNameCount[fileNameWithExtension] += 1;
@@ -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.1198",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",