fix: Booker shows toggle external calendar on external links (#13395)
This commit is contained in:
1 parent
8f9a4fc78f
commit
c84f75df99
1 file changed
+3
-1
@@ -1,4 +1,5 @@
|
|||||||
import { LazyMotion, m, AnimatePresence } from "framer-motion";
|
import { LazyMotion, m, AnimatePresence } from "framer-motion";
|
||||||
|
import { useSession } from "next-auth/react";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import { useSearchParams } from "next/navigation";
|
import { useSearchParams } from "next/navigation";
|
||||||
import { usePathname, useRouter } from "next/navigation";
|
import { usePathname, useRouter } from "next/navigation";
|
||||||
@@ -70,6 +71,7 @@ const BookerComponent = ({
|
|||||||
shallow
|
shallow
|
||||||
);
|
);
|
||||||
const event = useEvent();
|
const event = useEvent();
|
||||||
|
const session = useSession();
|
||||||
const { selectedTimeslot, setSelectedTimeslot } = useSlots(event);
|
const { selectedTimeslot, setSelectedTimeslot } = useSlots(event);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -362,7 +364,7 @@ const BookerComponent = ({
|
|||||||
"bg-default dark:bg-muted sticky top-0 z-10"
|
"bg-default dark:bg-muted sticky top-0 z-10"
|
||||||
)}>
|
)}>
|
||||||
<Header
|
<Header
|
||||||
isMyLink={Boolean(username === event?.data?.owner?.username)}
|
isMyLink={Boolean(username === session?.data?.user.username)}
|
||||||
eventSlug={eventSlug}
|
eventSlug={eventSlug}
|
||||||
enabledLayouts={bookerLayouts.enabledLayouts}
|
enabledLayouts={bookerLayouts.enabledLayouts}
|
||||||
extraDays={layout === BookerLayouts.COLUMN_VIEW ? columnViewExtraDays.current : extraDays}
|
extraDays={layout === BookerLayouts.COLUMN_VIEW ? columnViewExtraDays.current : extraDays}
|
||||||
|
|||||||
Reference in new issue
Block a user