
* WIP bookings page ui changes, created api endpoint * Ui changes mobile/desktop * Added translations * Fix lib import and common names * WIP reschedule * WIP * Save wip * [WIP] builder and class for CalendarEvent, email for attende * update rescheduled emails, booking view and availability page view * Working version reschedule * Fix for req.user as array * Added missing translation and refactor dialog to self component * Test for reschedule * update on types * Update lib no required * Update type on createBooking * fix types * remove preview stripe sub * remove unused file * remove unused import * Fix reschedule test * Refactor and cleaning up code * Email reschedule title fixes * Adding calendar delete and recreate placeholder of cancelled * Add translation * Removed logs, notes, fixed types * Fixes process.env types * Use strict compare * Fixes type inference * Type fixing is my middle name * Update apps/web/components/booking/BookingListItem.tsx * Update apps/web/components/dialog/RescheduleDialog.tsx * Update packages/core/builders/CalendarEvent/director.ts * Update apps/web/pages/success.tsx * Updates rescheduling labels * Update packages/core/builders/CalendarEvent/builder.ts * Type fixes * Update packages/core/builders/CalendarEvent/builder.ts * Only validating input blocked once * E2E fixes * Stripe tests fixes Co-authored-by: Peer Richelsen <peer@cal.com> Co-authored-by: zomars <zomars@me.com>
30 lines
1,002 B
TypeScript
30 lines
1,002 B
TypeScript
import { TFunction } from "next-i18next";
|
|
|
|
import { LocationType } from "./location";
|
|
|
|
export const LocationOptionsToString = (location: string, t: TFunction) => {
|
|
switch (location) {
|
|
case LocationType.InPerson:
|
|
return t("set_address_place");
|
|
case LocationType.Link:
|
|
return t("set_link_meeting");
|
|
case LocationType.Phone:
|
|
return t("cal_invitee_phone_number_scheduling");
|
|
case LocationType.GoogleMeet:
|
|
return t("cal_provide_google_meet_location");
|
|
case LocationType.Zoom:
|
|
return t("cal_provide_zoom_meeting_url");
|
|
case LocationType.Daily:
|
|
return t("cal_provide_video_meeting_url");
|
|
case LocationType.Jitsi:
|
|
return t("cal_provide_jitsi_meeting_url");
|
|
case LocationType.Huddle01:
|
|
return t("cal_provide_huddle01_meeting_url");
|
|
case LocationType.Tandem:
|
|
return t("cal_provide_tandem_meeting_url");
|
|
case LocationType.Teams:
|
|
return t("cal_provide_teams_meeting_url");
|
|
default:
|
|
return null;
|
|
}
|
|
};
|