diff --git a/src/routes/dashboard/classes.tsx b/src/routes/dashboard/classes.tsx index 1274d5c..44c5f55 100644 --- a/src/routes/dashboard/classes.tsx +++ b/src/routes/dashboard/classes.tsx @@ -10,6 +10,8 @@ function formatWeekends(weekends: string): string { } const ClassTile: Component<{ class: any }, {}> = function() { + const teachers = Array.isArray(this.class.teachers) ? this.class.teachers : []; + this.css = ` h2 { margin: 0; @@ -22,16 +24,17 @@ const ClassTile: Component<{ class: any }, {}> = function() {
Your admin has disabled viewing of classes data. The APIs are still accessible however.
)} -- School year: {use(this.schoolyear, x => x.Year)} ({use(this.schoolyear, x => x.startDate)} to {use(this.schoolyear, x => x.endDate)}) {use(this.schoolyear, x => x.startHour.toString().padStart(2, "0"))}:00-{use(this.schoolyear, x => x.endHour.toString().padStart(2, "0"))}:00, weekends on {use(this.schoolyear, x => formatWeekends(x.weekend))} -
-{use(this.notice)}
)} + {$if(use(this.disabled, x => !x),+ School year: {use(this.schoolyear, x => x.Year)} ({use(this.schoolyear, x => x.startDate)} to {use(this.schoolyear, x => x.endDate)}) {use(this.schoolyear, x => x.startHour.toString().padStart(2, "0"))}:00-{use(this.schoolyear, x => x.endHour.toString().padStart(2, "0"))}:00, weekends on {use(this.schoolyear, x => formatWeekends(x.weekend))} +
+