From 1deca816bd18eb6fba0563633f02873bcc54c9a9 Mon Sep 17 00:00:00 2001
From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Date: Tue, 13 Sep 2022 02:11:59 +0530
Subject: [PATCH] Feat/team owner booking (#3999)
* WIP: testing queries
* feat: add badge
* fix: get only id
* refactor: get bookings query
* WIP: display attendees added
* fix: add type
---
.../components/booking/BookingListItem.tsx | 113 ++++++++++++++++--
packages/trpc/server/routers/viewer.tsx | 15 +++
2 files changed, 120 insertions(+), 8 deletions(-)
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx
index 414a97b115..49b1c2035d 100644
--- a/apps/web/components/booking/BookingListItem.tsx
+++ b/apps/web/components/booking/BookingListItem.tsx
@@ -327,8 +327,14 @@ function BookingListItem(booking: BookingItemProps) {
"max-w-56 truncate text-sm font-medium leading-6 text-neutral-900 md:max-w-max",
isCancelled ? "line-through" : ""
)}>
- {booking.eventType?.team && {booking.eventType.team.name}: }
{booking.title}
+
+ {booking.eventType?.team &&
{attendee.name}
+ ))}> +