feat: Add cancelledBy input to cancellation page (#18770)

* feat: Add cancelledBy input to cancellation page

* fix: Update email verification error message

* Update safe-parse.ts

* fix: check attendees and booking owner email

* fix: minor ui

* Update CancelBooking.tsx

* Update common.json

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: Kartik Saini <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-07-14 07:14:18 +00:00
1 parent 66397a6626
commit 2838053ba8
3 files changed
+110 -45

No files matched your search

@@ -185,7 +185,6 @@ export default function Success(props: PageProps) {
searchParams?.get("cancelledBy") ??
session?.user?.email ??
undefined;
const defaultRating = isNaN(parsedRating) ? 3 : parsedRating > 5 ? 5 : parsedRating < 1 ? 1 : parsedRating;
const [rateValue, setRateValue] = useState<number>(defaultRating);
const [isFeedbackSubmitted, setIsFeedbackSubmitted] = useState(false);
@@ -859,6 +858,8 @@ export default function Success(props: PageProps) {
uid: bookingInfo?.uid,
title: bookingInfo?.title,
id: bookingInfo?.id,
attendees: bookingInfo?.attendees,
userEmail: bookingInfo?.user?.email as string,
}}
profile={{ name: props.profile.name, slug: props.profile.slug }}
recurringEvent={eventType.recurringEvent}