feat: add data display for rescheduled booking

pull/7970/head
nafees nazik 2023-03-28 13:29:07 +05:30
parent 4cecc00bd3
commit 81b4f7e1ab
1 changed files with 8 additions and 2 deletions

View File

@ -279,6 +279,8 @@ export default function Success(props: SuccessProps) {
(!!seatReferenceUid &&
!bookingInfo.seatsReferences.some((reference) => reference.referenceUid === seatReferenceUid));
const isRescheduled = status === "RESCHEDULED";
const telemetry = useTelemetry();
useEffect(() => {
if (top !== window) {
@ -460,6 +462,8 @@ export default function Success(props: SuccessProps) {
: t("event_cancelled")
: props.recurringBookings
? t("meeting_is_scheduled_recurring")
: isRescheduled
? t("meeting_is_rescheduled")
: t("meeting_is_scheduled")}
</h3>
<div className="mt-3">
@ -513,7 +517,7 @@ export default function Success(props: SuccessProps) {
allRemainingBookings={allRemainingBookings}
date={date}
is24h={is24h}
isCancelled={isCancelled}
isCancelled={isCancelled || isRescheduled}
tz={tz}
/>
</div>
@ -541,7 +545,7 @@ export default function Success(props: SuccessProps) {
</div>
</>
)}
{locationToDisplay && !isCancelled && (
{locationToDisplay && !isCancelled && !isRescheduled && (
<>
<div className="mt-3 font-medium">{t("where")}</div>
<div className="col-span-2 mt-3">
@ -600,6 +604,7 @@ export default function Success(props: SuccessProps) {
</div>
{(!needsConfirmation || !userIsOwner) &&
!isCancelled &&
!isRescheduled &&
(!isCancellationMode ? (
<>
<hr className="border-bookinglightest dark:border-darkgray-300 mb-8" />
@ -651,6 +656,7 @@ export default function Success(props: SuccessProps) {
!needsConfirmation &&
!isCancellationMode &&
!isCancelled &&
!isRescheduled &&
!!calculatedDuration && (
<>
<hr className="border-bookinglightest dark:border-darkgray-300 mt-8" />