@nualang/nualang-ui-components 0.1.1320 → 0.1.1323
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/Assignments/CreateAssignmentDialog/CreateAssignmentDialog.js +4 -4
- package/dist/Dialogs/GroupedFeedbackDialog/GroupedFeedbackDialog.js +4 -2
- package/dist/Screens/Classrooms/ViewClassroom/ViewClassroom.js +3 -2
- package/dist/Tables/MeetingPrompstList/MeetingPromptsList.js +4 -2
- package/package.json +1 -1
|
@@ -62,15 +62,15 @@ export default function CreateAssignmentDialog({
|
|
|
62
62
|
const [submittedExercises, setSubmittedExercises] = useState(initialData.exercises ? initialData.exercises : []);
|
|
63
63
|
const [members, setMembers] = useState([]);
|
|
64
64
|
const [assignment, setAssignment] = useState({
|
|
65
|
+
...initialData,
|
|
65
66
|
classroomId: classroom && classroom.length > 0 ? [classroom] : [],
|
|
66
67
|
assignedStudents,
|
|
67
68
|
title: initialData.title ? initialData.title : undefined,
|
|
68
69
|
instructions: initialData.instructions ? initialData.instructions : t("default_assignment_instructions"),
|
|
69
70
|
type: "assignment",
|
|
70
|
-
scheduleDate: dayjs().add(1, "minute"),
|
|
71
|
-
dueDate: dayjs().add(1, "day").endOf("day"),
|
|
72
|
-
exercises: submittedExercises
|
|
73
|
-
...initialData
|
|
71
|
+
scheduleDate: initialData.scheduleDate ? initialData.scheduleDate : dayjs().add(1, "minute"),
|
|
72
|
+
dueDate: initialData.dueDate ? initialData.dueDate : dayjs().add(1, "day").endOf("day"),
|
|
73
|
+
exercises: submittedExercises
|
|
74
74
|
});
|
|
75
75
|
const [isTitleEdited, setIsTitleEdited] = useState(Boolean(initialData.title));
|
|
76
76
|
const classroomQuery = useQueries({
|
|
@@ -31,7 +31,8 @@ export default function GroupFeedbackDialog({
|
|
|
31
31
|
editBackgroundImages,
|
|
32
32
|
editMeetingImages,
|
|
33
33
|
goToTimestamp = () => {},
|
|
34
|
-
startTimes = {}
|
|
34
|
+
startTimes = {},
|
|
35
|
+
learnLang = ""
|
|
35
36
|
}) {
|
|
36
37
|
const [generateAllUsed, setGenerateAllUsed] = useState(false);
|
|
37
38
|
const [checkedSubmissions, setCheckedSubmissions] = useState({});
|
|
@@ -124,7 +125,8 @@ export default function GroupFeedbackDialog({
|
|
|
124
125
|
creator: discussionData.creator,
|
|
125
126
|
meetingCreator: discussionData.meetingCreator,
|
|
126
127
|
conversation: discussionData.conversation,
|
|
127
|
-
meetingPrompt: discussionData.meetingPrompt
|
|
128
|
+
meetingPrompt: discussionData.meetingPrompt,
|
|
129
|
+
learnLang: learnLang
|
|
128
130
|
}]);
|
|
129
131
|
}
|
|
130
132
|
};
|
|
@@ -1050,7 +1050,8 @@ function Classroom({
|
|
|
1050
1050
|
meetingRecsData: meetingRecsData,
|
|
1051
1051
|
hasBadLanguage: hasBadLanguage,
|
|
1052
1052
|
handleArchiveSubmissions: handleArchiveSubmissions,
|
|
1053
|
-
startTimes: startTimes
|
|
1053
|
+
startTimes: startTimes,
|
|
1054
|
+
learnLang: classroom?.learnLang
|
|
1054
1055
|
})
|
|
1055
1056
|
})
|
|
1056
1057
|
}), !isCreator && discussions?.length > 0 && /*#__PURE__*/_jsx(Box, {
|
|
@@ -1259,7 +1260,7 @@ function Classroom({
|
|
|
1259
1260
|
}
|
|
1260
1261
|
}
|
|
1261
1262
|
return 0;
|
|
1262
|
-
}, [isCreator
|
|
1263
|
+
}, [isCreator.tabs?.length]); // only recompute if isCreator or tabs change
|
|
1263
1264
|
|
|
1264
1265
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
1265
1266
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -39,7 +39,8 @@ const MeetingPromptsList = withStyles(({
|
|
|
39
39
|
selectedRecording,
|
|
40
40
|
getMeeting,
|
|
41
41
|
getRecordings,
|
|
42
|
-
startTimes = {}
|
|
42
|
+
startTimes = {},
|
|
43
|
+
learnLang
|
|
43
44
|
}) => {
|
|
44
45
|
const navigate = useNavigate();
|
|
45
46
|
const location = useLocation();
|
|
@@ -418,7 +419,8 @@ const MeetingPromptsList = withStyles(({
|
|
|
418
419
|
editBackgroundImages: editBackgroundImages[0],
|
|
419
420
|
editMeetingImages: editMeetingImages[0],
|
|
420
421
|
goToTimestamp: goToTimestamp,
|
|
421
|
-
startTimes: startTimes
|
|
422
|
+
startTimes: startTimes,
|
|
423
|
+
learnLang: learnLang
|
|
422
424
|
}), /*#__PURE__*/_jsx(Dialog, {
|
|
423
425
|
role: "dialog",
|
|
424
426
|
open: isRecordingDialogOpen,
|