Skip to content

Commit

Permalink
feat(room-booking): improve BookingTimeline
Browse files Browse the repository at this point in the history
- New booking indicators added on hover and hold (closes #151).
- Implemented emit of `bookingClick` event (partially implements #155).
- Implemented loading state for rooms and bookings, error handling improved (closes #149).
  • Loading branch information
evermake committed Oct 7, 2024
1 parent 154b328 commit 003c356
Show file tree
Hide file tree
Showing 3 changed files with 706 additions and 499 deletions.
6 changes: 3 additions & 3 deletions src/components/room-booking/BookModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
useRole,
useTransitionStyles,
} from "@floating-ui/react";
import React, { useCallback, useRef, useState } from "react";
import { BookingData } from "./RoomBookingPage.tsx";
import { useCallback, useRef, useState } from "react";
import type { NewBooking } from "./BookingTimeline.vue";

function getBookingUrl(booking: {
myUniRoomId: number;
Expand All @@ -34,7 +34,7 @@ export function BookModal({
open,
onOpenChange,
}: {
data?: BookingData;
data?: NewBooking;
open: boolean;
onOpenChange: (open: boolean) => void;
}) {
Expand Down
Loading

0 comments on commit 003c356

Please sign in to comment.