feat: don't update query params for booker atom (#20000)
* feat: Add `omitUpdatingParams` prop to Booker store for query param control * remove console * Update booking.tsx * fix: type check failing * undo changes * feat: Expose `onBookerStateChange` callback to track `booker-store` updates * add `onBookerStateChange` docs * Update store.ts * added `allowUpdatingUrlParams` for backwards compatibility
This commit is contained in:
1 parent
f8aa2701b6
commit
b1ebefb854
5 files changed
+141
-15
No files matched your search
@@ -120,6 +120,8 @@ Below is a list of props that can be passed to the booker atom.
|
||||
| view | No | Specifies the layout of the booker atom into column, week, or month view |
|
||||
| metadata | No | Used to pass custom metadata values into the booker. Metadata should be an object eg: `{ bookingSource: "website", userRole: "admin" }` |
|
||||
| bannerUrl | No | Adds custom banner to the booker atom |
|
||||
| onBookerStateChange | No | Callback function that is triggered when the state of the booker atom changes. |
|
||||
| allowUpdatingUrlParams | No | Boolean indicating if the URL parameters should be updated, defaults to false. |
|
||||
|
||||
Along with the props, booker atom accepts custom styles via the **customClassNames** prop. Below is a list of props that fall under this **customClassNames** prop.
|
||||
<p></p>
|
||||
|
||||
Reference in new issue
Block a user