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