diff --git a/apps/web/pages/cancel/[uid].tsx b/apps/web/pages/cancel/[uid].tsx index cc94945196..df77655a0e 100644 --- a/apps/web/pages/cancel/[uid].tsx +++ b/apps/web/pages/cancel/[uid].tsx @@ -14,8 +14,8 @@ import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calco import { detectBrowserTimeFormat } from "@calcom/lib/timeFormat"; import { localStorage } from "@calcom/lib/webstorage"; import prisma, { bookingMinimalSelect } from "@calcom/prisma"; -import { Button } from "@calcom/ui/Button"; import { Icon } from "@calcom/ui/Icon"; +import { Button } from "@calcom/ui/v2/core/Button"; import { getSession } from "@lib/auth"; import { inferSSRProps } from "@lib/types/inferSSRProps"; diff --git a/packages/emails/src/components/ManageLink.tsx b/packages/emails/src/components/ManageLink.tsx index 2010ff5680..419c61e7c5 100644 --- a/packages/emails/src/components/ManageLink.tsx +++ b/packages/emails/src/components/ManageLink.tsx @@ -1,4 +1,4 @@ -import { getCancelLink } from "@calcom/lib/CalEventParser"; +import { getCancelLink, getRescheduleLink } from "@calcom/lib/CalEventParser"; import type { CalendarEvent, Person } from "@calcom/types/Calendar"; export function ManageLink(props: { calEvent: CalendarEvent; attendee: Person }) { @@ -19,12 +19,22 @@ export function ManageLink(props: { calEvent: CalendarEvent; attendee: Person }) textAlign: "left", color: "#3e3e3e", }}> -

- <>{t("need_to_reschedule_or_cancel")} -

-

+

+ <>{t("need_to_make_a_change")} + + <>{t("reschedule")} + + <>{t("or_lowercase")} - <>{t("manage_this_event")} + <>{t("cancel")}

diff --git a/packages/lib/CalEventParser.ts b/packages/lib/CalEventParser.ts index 462397c2af..ab41478be8 100644 --- a/packages/lib/CalEventParser.ts +++ b/packages/lib/CalEventParser.ts @@ -135,6 +135,10 @@ export const getCancelLink = (calEvent: CalendarEvent): string => { return WEBAPP_URL + "/cancel/" + getUid(calEvent); }; +export const getRescheduleLink = (calEvent: CalendarEvent): string => { + return WEBAPP_URL + "/reschedule/" + getUid(calEvent); +}; + export const getRichDescription = (calEvent: CalendarEvent /*, attendee?: Person*/) => { return ` ${getCancellationReason(calEvent)}