mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
holidays implemented
This commit is contained in:
@@ -123,7 +123,7 @@ export function AssignmentButtons({
|
||||
{({ closeModal }) => (
|
||||
<div>
|
||||
<div className="text-center">
|
||||
Are you sure you want to delete this quiz locally?
|
||||
Are you sure you want to delete this assignment locally?
|
||||
</div>
|
||||
<br />
|
||||
<div className="flex justify-around gap-3">
|
||||
|
||||
@@ -96,7 +96,7 @@ export default function NewCourseForm() {
|
||||
],
|
||||
defaultFileUploadTypes: ["pdf", "png", "jpg", "jpeg"],
|
||||
defaultLockHoursOffset: 0,
|
||||
holidays: {}
|
||||
holidays: []
|
||||
},
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
@@ -47,7 +47,9 @@ const populateDefaultValues = (settingsFromFile: LocalCourseSettings) => {
|
||||
defaultSubmissionType,
|
||||
defaultFileUploadTypes:
|
||||
settingsFromFile.defaultFileUploadTypes || defaultFileUploadTypes,
|
||||
holidays: !!settingsFromFile.holidays ? settingsFromFile.holidays : [],
|
||||
holidays: Array.isArray(settingsFromFile.holidays)
|
||||
? settingsFromFile.holidays
|
||||
: [],
|
||||
};
|
||||
return settings;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user