From c84f75df9928cc2dd32210dfd6bb92a02424240a Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Wed, 24 Jan 2024 20:38:17 +0200 Subject: [PATCH] fix: Booker shows toggle external calendar on external links (#13395) --- packages/features/bookings/Booker/Booker.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index 2c2694f709..86b828fda0 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -1,4 +1,5 @@ import { LazyMotion, m, AnimatePresence } from "framer-motion"; +import { useSession } from "next-auth/react"; import dynamic from "next/dynamic"; import { useSearchParams } from "next/navigation"; import { usePathname, useRouter } from "next/navigation"; @@ -70,6 +71,7 @@ const BookerComponent = ({ shallow ); const event = useEvent(); + const session = useSession(); const { selectedTimeslot, setSelectedTimeslot } = useSlots(event); const { @@ -362,7 +364,7 @@ const BookerComponent = ({ "bg-default dark:bg-muted sticky top-0 z-10" )}>