@nualang/nualang-ui-components 0.1.1274 → 0.1.1275-0

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.
@@ -55,7 +55,8 @@ function CreateAssignmentDialog({
55
55
  getCourses,
56
56
  initialData = {},
57
57
  dialogTitle,
58
- userEmail = ""
58
+ userEmail = '',
59
+ assignedStudents
59
60
  }) {
60
61
  const {
61
62
  classes
@@ -68,12 +69,12 @@ function CreateAssignmentDialog({
68
69
  const [members, setMembers] = (0, _react.useState)([]);
69
70
  const [assignment, setAssignment] = (0, _react.useState)({
70
71
  classroomId: classroom?.length > 0 ? [classroom] : [],
71
- assignedStudents: members?.map(member => member.memberId),
72
+ assignedStudents,
72
73
  title: initialData.title ? initialData.title : undefined,
73
74
  instructions: initialData.instructions ? initialData.instructions : t("default_assignment_instructions"),
74
75
  type: "assignment",
75
- scheduleDate: (0, _dayjs.default)(),
76
- dueDate: (0, _dayjs.default)().add(1, "day"),
76
+ scheduleDate: (0, _dayjs.default)().startOf("day"),
77
+ dueDate: (0, _dayjs.default)().add(1, "day").endOf("day"),
77
78
  exercises: submittedExercises,
78
79
  ...initialData
79
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1274",
3
+ "version": "0.1.1275-0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",