Skip to content

Commit

Permalink
Merge branch 'main' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Dec 1, 2024
2 parents 6cedd8c + 3f2be47 commit a814734
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions booking-app/app/templates/booking_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
contents.lastName }}
</div>
</td>
</tr>
<tr></tr>
<td>Department</td>
<td>
<div class="value-content">{{ contents.department }}</div>
</td>
</tr>
<tr>
<td>Contact Info</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "@fullcalendar/core";
import CalendarEventBlock, { NEW_TITLE_TAG } from "./CalendarEventBlock";
import { FormContextLevel, RoomSetting } from "../../../../types";
import React, { useContext, useEffect, useMemo, useRef } from "react";
import { useContext, useEffect, useMemo, useRef } from "react";

import { BookingContext } from "../bookingProvider";
import { Error } from "@mui/icons-material";
Expand Down Expand Up @@ -240,6 +240,22 @@ export default function CalendarVerticalResource({
);
}

// const operationHoursToday = operationHours.find(
// (setting) => Object.values(Days)[dateView.getDay()] === setting.day
// );

// if (operationHoursToday.isClosed) {
// return (
// <Empty>
// <Typography>The Media Commons are closed on Sundays.</Typography>
// </Empty>
// );
// }

// const slotMinTime = `${operationHoursToday.open}:00:00`;
// const slotMaxTime = `${operationHoursToday.close}:00:00`;
// don't use these values until we talk to Samantha/Jhanele

return (
<FullCalendarWrapper>
<FullCalendar
Expand Down
1 change: 1 addition & 0 deletions booking-app/components/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export enum Role {
RESIDENT_FELLOW = "Resident/Fellow",
FACULTY = "Faculty",
ADMIN_STAFF = "Admin/Staff",
CHAIR_PROGRAM_DIRECTOR = "Chair/Program Director"
}

export type RoomSetting = {
Expand Down

0 comments on commit a814734

Please sign in to comment.