[CAL-183] email and calendar still use old “cancel/reschedule” screens (#5149)

Co-authored-by: gitstart <[email protected]>
Co-authored-by: gitstart <[email protected]>
Co-authored-by: Nitesh Singh <[email protected]>
Co-authored-by: Rafael Toledo <[email protected]>
Co-authored-by: Matheus Benini Ferreira <[email protected]>
Co-authored-by: MuriloAmarals <[email protected]>
Co-authored-by: Murilo Amaral <[email protected]>
Co-authored-by: Rubens Rafael <[email protected]>
Co-authored-by: Thiago Nascimbeni <[email protected]>
Co-authored-by: Rafael <[email protected]>
Co-authored-by: Grace Nshokano <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: Júlio Piubello da Silva Cabral <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: C000Ldude <[email protected]>
Co-authored-by: Klinger Matheus <[email protected]>
Co-authored-by: Eman <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
3 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -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";
+16 -6
View File
@@ -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",
}}>
<p>
<>{t("need_to_reschedule_or_cancel")}</>
</p>
<p style={{ fontWeight: 400, lineHeight: "24px" }}>
<p
style={{
fontWeight: 400,
lineHeight: "24px",
display: "flex",
justifyContent: "center",
width: "100%",
gap: "8px",
}}>
<>{t("need_to_make_a_change")}</>
<a href={getRescheduleLink(props.calEvent)} style={{ color: "#3e3e3e" }}>
<>{t("reschedule")}</>
</a>
<>{t("or_lowercase")}</>
<a href={getCancelLink(props.calEvent)} style={{ color: "#3e3e3e" }}>
<>{t("manage_this_event")}</>
<>{t("cancel")}</>
</a>
</p>
</div>
+4
View File
@@ -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)}