feat: upcoming bookings atom (#24010)

* init: upcoming bookings atom

* add comments

* fix: better naming

* fixup

* fix: use `usePrefetch` hook

* add comment- for myself

* chore: add changesets

* fix: ignore isTeamEvent prop if we have teamId

* chore: update docs

* chore: implement PR feedback

* refactor: remove all unnecessary props

* update fetch bookings count
This commit is contained in:
Rajiv Sahal authored and GitHub committed 2025-10-14 12:37:37 +02:00
1 parent 243012e82f
commit 09ee39a3d8
4 files changed
+68 -97

No files matched your search

+4 -5
View File
@@ -30,7 +30,7 @@ import { CalendarView } from "@calcom/atoms";
export default function Booker( props : BookerProps ) {
return (
<div>
<CalendarView isTeamEvent={true} teamId={props.teamId} eventSlug={props.eventSlug} />
<CalendarView teamId={props.teamId} eventSlug={props.eventSlug} />
</div>
)
}
@@ -55,7 +55,6 @@ Below is a list of props that can be passed to the create event type atom
| Name | Required | Description |
|:----------------------------|:----------|:-------------------------------------------------------------------------------------------------------|
| username | Yes | Username of the person whose schedule is to be displayed |
| eventSlug | Yes | Unique slug created for a particular event | |
| isTeamEvent | No | Boolean indicating if it is a team event, to be passed only for team events |
| teamId | No | The id of the team for which the event is created, to be passed only for team events |
| eventSlug | Yes | Unique slug created for a particular event |
| username | Optional | Username of the person whose schedule is to be displayed, required only for individual events | | |
| teamId | Optional | Id of the team for which the event is created, required only for team events |