feat: Booker atom enable hiding event details (#16906)
* refactor: Booker component hideEventTypeDetails hides sidebar * feat: Booker atom hideEventTypeDetails prop * fix: redundant border appearing if event details hidden * Revert "fix: redundant border appearing if event details hidden" This reverts commit 63122a906a8e41b54074387e1a6a4f0e4489a8a9. * fix: border
This commit is contained in:
1 parent
5e3865b645
commit
ba5b9e951a
3 files changed
+49
-35
No files matched your search
@@ -76,6 +76,7 @@ export type BookerPlatformWrapperAtomProps = Omit<
|
||||
locationUrl?: string;
|
||||
view?: VIEW_TYPE;
|
||||
metadata?: Record<string, string>;
|
||||
hideEventTypeDetails?: boolean;
|
||||
};
|
||||
|
||||
type VIEW_TYPE = keyof typeof BookerLayouts;
|
||||
@@ -180,7 +181,7 @@ export const BookerPlatformWrapper = (
|
||||
event.data.length = props.duration;
|
||||
}
|
||||
|
||||
const bookerLayout = useBookerLayout(event.data);
|
||||
const bookerLayout = useBookerLayout(event.data, { hideEventTypeDetails: props.hideEventTypeDetails });
|
||||
useInitializeBookerStore({
|
||||
...props,
|
||||
eventId: event.data?.id,
|
||||
|
||||
Reference in new issue
Block a user