@tribe-nest/forge 3.64.0 → 3.65.0
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 +1 -1
- package/src/data/queries/useCoachingAvailability.ts +18 -6
- package/src/data/queries/useMyBookings.ts +7 -0
- package/src/i18n/de.json +46 -0
- package/src/i18n/en.json +46 -0
- package/src/types/models.ts +13 -0
- package/src/ui/format/_tests/ticketPrice.spec.ts +58 -0
- package/src/ui/format/bookingPricing.ts +55 -0
- package/src/ui/format/ticketPrice.ts +52 -0
- package/src/ui/headless/coaching/useCoachingBooking.ts +139 -13
- package/src/ui/index.ts +13 -0
- package/src/ui/styled/AccountDashboard.tsx +11 -3
- package/src/ui/styled/BookingPriceSummary.tsx +57 -0
- package/src/ui/styled/CoachingBooking.tsx +36 -158
- package/src/ui/styled/CoachingConfirmation.tsx +13 -2
- package/src/ui/styled/CoachingDetail.tsx +8 -2
- package/src/ui/styled/CoachingSlotPicker.tsx +874 -0
- package/src/ui/styled/EventDetail.tsx +29 -6
- package/src/ui/styled/EventTickets.tsx +35 -11
- package/src/ui/styled/_tests/CoachingMultiSession.spec.tsx +299 -0
- package/src/ui/styled/_tests/FreeTickets.spec.tsx +242 -0
- package/src/ui/styled/broadcast/BroadcastTicketPurchase.tsx +18 -4
- package/src/ui/styled/forge-utilities.css +0 -5
- package/src/ui/styled/seating/EventSeatPicker.tsx +2 -0
- package/src/ui/styled/seating/SeatLegend.tsx +3 -1
- package/src/utils/structuredData.ts +4 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BookingPriceSummary } from "./BookingPriceSummary";
|
|
2
|
+
import { bookingGrossAmount, bookingSessionRange } from "../format/bookingPricing";
|
|
1
3
|
import { Clock } from "lucide-react";
|
|
2
4
|
import type { CoachingProduct } from "../../types/models";
|
|
3
5
|
import { useGetCoachingProduct } from "../../data/queries/useCoachingProducts";
|
|
@@ -43,7 +45,11 @@ export function CoachingDetail({
|
|
|
43
45
|
const fmt = useAmountFormatter(formatAmount);
|
|
44
46
|
const pricesIncludeTax = usePricesIncludeTax();
|
|
45
47
|
const { data: product, isLoading } = useGetCoachingProduct(slug, { initialData: initialCoaching });
|
|
46
|
-
useMetaViewContent(
|
|
48
|
+
useMetaViewContent(
|
|
49
|
+
product
|
|
50
|
+
? { id: product.id, name: product.title, value: bookingGrossAmount(product, bookingSessionRange(product).min) }
|
|
51
|
+
: null,
|
|
52
|
+
);
|
|
47
53
|
|
|
48
54
|
if (isLoading) return <Loading fullPage />;
|
|
49
55
|
if (!product) return <p>{t("forge.coaching_detail.not_found")}</p>;
|
|
@@ -93,7 +99,7 @@ export function CoachingDetail({
|
|
|
93
99
|
}}
|
|
94
100
|
>
|
|
95
101
|
<span style={{ fontWeight: 600 }}>
|
|
96
|
-
<
|
|
102
|
+
<BookingPriceSummary product={product} fmt={fmt} pricesIncludeTax={pricesIncludeTax} mutedColor={tokens.text} />
|
|
97
103
|
</span>
|
|
98
104
|
<CoachingBooking slug={slug} formatAmount={fmt} finalisePath={finalisePath} onComplete={onComplete} />
|
|
99
105
|
{/* S.6 — next to the price and the button, so the terms are readable
|