@nualang/nualang-ui-components 0.1.1320 → 0.1.1326
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/Cards/CardElements/CardTitle/CardTitle.js +1 -1
- package/dist/Cards/CardElements/index.js +2 -2
- package/dist/Chat/BottomBar/BottomBar.js +2 -1
- package/dist/Dialogs/GroupedFeedbackDialog/GroupedFeedbackDialog.js +4 -2
- package/dist/Lists/ListElements/index.js +1 -1
- package/dist/Navigation/Breadcrumbs/Breadcrumbs.js +1 -1
- 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({
|
|
@@ -9,7 +9,6 @@ const CardContainer = styled(Card)(({
|
|
|
9
9
|
theme
|
|
10
10
|
}) => ({
|
|
11
11
|
textAlign: "left",
|
|
12
|
-
color: theme.palette.text.secondary,
|
|
13
12
|
maxWidth: 600,
|
|
14
13
|
minWidth: 320,
|
|
15
14
|
display: "flex",
|
|
@@ -109,7 +108,8 @@ const CardInfoSection = styled(Box)(({
|
|
|
109
108
|
[theme.breakpoints.down("sm")]: {
|
|
110
109
|
marginBottom: 0
|
|
111
110
|
},
|
|
112
|
-
marginBottom: theme.spacing(2)
|
|
111
|
+
marginBottom: theme.spacing(2),
|
|
112
|
+
color: theme.palette.text.secondary
|
|
113
113
|
}));
|
|
114
114
|
const CardInfoSectionItem = styled(Typography)(() => ({
|
|
115
115
|
display: "flex",
|
|
@@ -154,7 +154,8 @@ export default function BottomBar({
|
|
|
154
154
|
},
|
|
155
155
|
disableUnderline: true,
|
|
156
156
|
multiline: true,
|
|
157
|
-
|
|
157
|
+
minRows: isChallengeBot ? 3 : 1,
|
|
158
|
+
maxRows: 3,
|
|
158
159
|
autoComplete: autoComplete,
|
|
159
160
|
inputRef: activeRef,
|
|
160
161
|
onClick: handleSelectCurrentInput,
|
|
@@ -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
|
};
|
|
@@ -108,7 +108,7 @@ export default function AppBreadcrumbs(props) {
|
|
|
108
108
|
} = props;
|
|
109
109
|
routes = appRoutes;
|
|
110
110
|
return /*#__PURE__*/_jsx(Paper, {
|
|
111
|
-
elevation:
|
|
111
|
+
elevation: 1,
|
|
112
112
|
square: true,
|
|
113
113
|
className: classes.paper,
|
|
114
114
|
children: /*#__PURE__*/_jsx(Breadcrumbs, {})
|
|
@@ -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,
|