Add seats to event types (#2485)
* Add seatsPerTimeSlot to event type schema * Add seats per time slot to event type form * Book event and render seats * Pass booking uid for seats * Disable requires confirmation if seats are enabled * Fix type errors * Update submodules * Fix type errors * Fix type errors * Fix duplicate string * Fix duplicate string * Fix schema and migration file * Fix render seats * Fix bookinguid typos * Remove console.log * Fix type error * Fix mobile formatting * Update apps/web/lib/hooks/useSlots.ts Co-authored-by: Omar López <[email protected]> * Update apps/web/lib/hooks/useSlots.ts Co-authored-by: Omar López <[email protected]> * Added translation for seats available text Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <[email protected]> Co-authored-by: alannnc <[email protected]>
This commit is contained in:
22 files changed
+326
-16
No files matched your search
@@ -49,6 +49,7 @@ const commons = {
|
||||
price: 0,
|
||||
currency: "usd",
|
||||
schedulingType: SchedulingType.COLLECTIVE,
|
||||
seatsPerTimeSlot: null,
|
||||
id: 0,
|
||||
metadata: {
|
||||
smartContractAddress: "",
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "EventType" ADD COLUMN "seatsPerTimeSlot" INTEGER;
|
||||
|
||||
@@ -66,6 +66,7 @@ model EventType {
|
||||
minimumBookingNotice Int @default(120)
|
||||
beforeEventBuffer Int @default(0)
|
||||
afterEventBuffer Int @default(0)
|
||||
seatsPerTimeSlot Int?
|
||||
schedulingType SchedulingType?
|
||||
schedule Schedule?
|
||||
price Int @default(0)
|
||||
|
||||
Reference in new issue
Block a user