Skip to content

Commit

Permalink
Remove catering links
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Nov 6, 2023
1 parent 18bc08d commit 3073464
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ export const Bookings = () => {
const [showModal, setShowModal] = useState(false);
const [selectedInfo, setSelectedInfo] = useState<Booking>();
const [tab, setTab] = useState('bookings');
const [reload, setReload] = useState(false);

useEffect(() => {
fetchBookings();
fetchBookingStatuses();
}, []);
}, [reload]);
useEffect(() => {
const mappings = bookings
.map((booking, index) => {
Expand Down Expand Up @@ -245,7 +246,7 @@ export const Bookings = () => {
await serverFunctions.approveBooking(
booking.calendarEventId
);
window.location.reload();
setReload(true);
}}
>
Second Approve
Expand All @@ -258,7 +259,7 @@ export const Bookings = () => {
await serverFunctions.approveBooking(
booking.calendarEventId
);
window.location.reload();
setReload(true);
}}
>
First Approve
Expand All @@ -268,7 +269,7 @@ export const Bookings = () => {
className="font-medium text-blue-600 dark:text-blue-500 hover:underline mx-2"
onClick={async () => {
await serverFunctions.reject(booking.calendarEventId);
window.location.reload();
setReload(true);
}}
>
Reject
Expand All @@ -277,7 +278,7 @@ export const Bookings = () => {
className="font-medium text-blue-600 dark:text-blue-500 hover:underline mx-2"
onClick={async () => {
await serverFunctions.cancel(booking.calendarEventId);
window.location.reload();
setReload(true);
}}
>
Cancel
Expand All @@ -289,7 +290,7 @@ export const Bookings = () => {
await serverFunctions.checkin(
booking.calendarEventId
);
window.location.reload();
setReload(true);
}}
>
Check In
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,6 @@ const FormInput = ({ hasEmail, roomNumber, handleParentSubmit }) => {
<p className="text-xs">
It is required for the reservation holder to pay and arrange for CBS
cleaning services if the event includes catering.
<a
href=""
target="_blank"
className="text-blue-600 hover:underline dark:text-blue-500 mx-1"
>
Please see this link for more information
</a>
.
</p>
<div className="flex items-center mb-4">
<select
Expand Down

0 comments on commit 3073464

Please sign in to comment.