Frontend fixes

This commit is contained in:
zomars committed 2022-06-15 21:19:13 -06:00
1 parent 3ae35a3b5d
commit 4eec01e2ad
5 files changed
+323 -323

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
import { BookingStatus, Credential, SelectedCalendar } from "@prisma/client";
import { getBusyCalendarTimes } from "@calcom/core/CalendarManager";
import { getBusyVideoTimes } from "@calcom/core/videoClient";
import notEmpty from "@calcom/lib/notEmpty";
// import { getBusyVideoTimes } from "@calcom/core/videoClient";
// import notEmpty from "@calcom/lib/notEmpty";
import prisma from "@calcom/prisma";
import type { EventBusyDate } from "@calcom/types/Calendar";
@@ -35,7 +35,7 @@ export async function getBusyTimes(params: {
if (credentials.length > 0) {
const calendarBusyTimes = await getBusyCalendarTimes(credentials, startTime, endTime, selectedCalendars);
console.log("calendarBusyTimes", calendarBusyTimes);
// console.log("calendarBusyTimes", calendarBusyTimes);
busyTimes.push(...calendarBusyTimes); /*
// TODO: Disabled until we can filter Zoom events by date. Also this is adding too much latency.
const videoBusyTimes = (await getBusyVideoTimes(credentials)).filter(notEmpty);
+2
View File
@@ -2,9 +2,11 @@ import { useTranslation } from "next-i18next";
export const useLocale = (namespace: Parameters<typeof useTranslation>[0] = "common") => {
const { i18n, t } = useTranslation(namespace);
const isLocaleReady = Object.keys(i18n).length > 0;
return {
i18n,
t,
isLocaleReady,
};
};