@ticketboothapp/booking 1.2.142 → 1.2.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -190,6 +190,7 @@ export function AdminChangeCheckoutPanel({
|
|
|
190
190
|
amendmentLines={serverAmendmentLines}
|
|
191
191
|
amountDue={serverAmountDue}
|
|
192
192
|
updatedTotal={serverUpdatedTotal}
|
|
193
|
+
selectionChanged={hasEffectiveChangeSelection}
|
|
193
194
|
amountDueLabel={totalSummaryLabel}
|
|
194
195
|
currency={currency}
|
|
195
196
|
locale={locale}
|
|
@@ -17,6 +17,7 @@ export interface AdminChangeReceiptComparisonProps {
|
|
|
17
17
|
amountDue: number | null;
|
|
18
18
|
/** Full resulting booking total returned by the same server quote. */
|
|
19
19
|
updatedTotal: number | null;
|
|
20
|
+
selectionChanged: boolean;
|
|
20
21
|
amountDueLabel: string;
|
|
21
22
|
currency: Currency;
|
|
22
23
|
locale: string;
|
|
@@ -46,6 +47,7 @@ export function AdminChangeReceiptComparison({
|
|
|
46
47
|
amendmentLines,
|
|
47
48
|
amountDue,
|
|
48
49
|
updatedTotal,
|
|
50
|
+
selectionChanged,
|
|
49
51
|
amountDueLabel,
|
|
50
52
|
currency,
|
|
51
53
|
locale,
|
|
@@ -97,7 +99,12 @@ export function AdminChangeReceiptComparison({
|
|
|
97
99
|
{amountDue == null ? '—' : formatCurrencyAmount(amountDue, currency, displayLocale)}
|
|
98
100
|
</span>
|
|
99
101
|
</div>
|
|
100
|
-
{!
|
|
102
|
+
{!selectionChanged ? (
|
|
103
|
+
<div className="rounded-md border border-dashed border-stone-300 bg-white/70 px-3 py-4 text-center">
|
|
104
|
+
<p className="text-sm font-medium text-stone-700">No changes selected</p>
|
|
105
|
+
<p className="mt-1 text-xs text-stone-500">Change tickets or another booking option to request a price.</p>
|
|
106
|
+
</div>
|
|
107
|
+
) : !quoteReady ? (
|
|
101
108
|
<div className="rounded-md border border-dashed border-stone-300 bg-white/70 px-3 py-4 text-center">
|
|
102
109
|
<p className="text-sm font-medium text-stone-700">Waiting for server price…</p>
|
|
103
110
|
</div>
|
|
@@ -140,7 +147,7 @@ export function AdminChangeReceiptComparison({
|
|
|
140
147
|
<div className="flex flex-wrap items-center justify-between gap-2 rounded-lg border border-stone-200 bg-stone-50 px-3 py-2">
|
|
141
148
|
<span className="text-sm font-semibold text-stone-900">{amountDueLabel}</span>
|
|
142
149
|
<span className={`text-lg font-semibold tabular-nums ${amountDueClass}`}>
|
|
143
|
-
{amountDue == null ? '—' : formatCurrencyAmount(amountDue, currency, displayLocale)}
|
|
150
|
+
{!selectionChanged || amountDue == null ? '—' : formatCurrencyAmount(amountDue, currency, displayLocale)}
|
|
144
151
|
</span>
|
|
145
152
|
</div>
|
|
146
153
|
</div>
|