From eae60043bb326881c47de197dd7e468ef94cf4c3 Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Thu, 27 Oct 2022 16:13:52 +0700 Subject: [PATCH] =?UTF-8?q?[CAL-183]=20email=20and=20calendar=20still=20us?= =?UTF-8?q?e=20old=20=E2=80=9Ccancel/reschedule=E2=80=9D=20screens=20(#514?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: Nitesh Singh Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: MuriloAmarals Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com> Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Rafael Co-authored-by: Grace Nshokano Co-authored-by: Matheus Muniz Co-authored-by: JĂșlio Piubello da Silva Cabral Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: C000Ldude Co-authored-by: Klinger Matheus <50892465+KlingerMatheus@users.noreply.github.com> Co-authored-by: Eman Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/pages/cancel/[uid].tsx | 2 +- packages/emails/src/components/ManageLink.tsx | 22 ++++++++++++++----- packages/lib/CalEventParser.ts | 4 ++++ 3 files changed, 21 insertions(+), 7 deletions(-) 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)}