mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-23 05:39:05 +00:00
self-pr review
This commit is contained in:
@@ -67,9 +67,7 @@ export default function ICSSettings({
|
||||
eventsUpdated: number;
|
||||
} | null>(null);
|
||||
|
||||
// React Query hooks
|
||||
const syncMutation = useRoomIcsSync();
|
||||
const statusQuery = useRoomIcsStatus(roomName || null);
|
||||
|
||||
const fetchIntervalCollection = createListCollection({
|
||||
items: fetchIntervalOptions,
|
||||
|
||||
@@ -21,6 +21,7 @@ type Room = components["schemas"]["Room"];
|
||||
type Meeting = components["schemas"]["Meeting"];
|
||||
type CalendarEventResponse = components["schemas"]["CalendarEventResponse"];
|
||||
import { RoomActionsMenu } from "./RoomActionsMenu";
|
||||
import { MEETING_DEFAULT_TIME_MINUTES } from "../../../[roomName]/[meetingId]/constants";
|
||||
|
||||
interface RoomTableProps {
|
||||
rooms: Room[];
|
||||
@@ -113,7 +114,9 @@ function MeetingStatus({ roomName }: { roomName: string }) {
|
||||
return (
|
||||
<VStack gap={1} alignItems="start">
|
||||
<Badge colorScheme="orange" size="sm">
|
||||
{diffMinutes < 60 ? `In ${diffMinutes}m` : "Upcoming"}
|
||||
{diffMinutes < MEETING_DEFAULT_TIME_MINUTES
|
||||
? `In ${diffMinutes}m`
|
||||
: "Upcoming"}
|
||||
</Badge>
|
||||
<Text fontSize="xs" color="gray.600" lineHeight={1}>
|
||||
{event.title || "Scheduled Meeting"}
|
||||
|
||||
Reference in New Issue
Block a user