feat: add data display for rescheduled booking
parent
4cecc00bd3
commit
81b4f7e1ab
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue