From 9ac562cfbaad76f9ba547b9f040850beb2193ee6 Mon Sep 17 00:00:00 2001 From: Sai Deepesh Date: Fri, 17 Mar 2023 16:02:02 +0530 Subject: [PATCH] feat: add toast dynamically on booking page (#7672) --- apps/web/components/booking/pages/BookingPage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index 54ddf661ac..8aa1573d83 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -58,6 +58,8 @@ import type { BookPageProps } from "../../../pages/[user]/book"; import type { HashLinkPageProps } from "../../../pages/d/[link]/book"; import type { TeamBookingPageProps } from "../../../pages/team/[slug]/book"; +const Toaster = dynamic(() => import("react-hot-toast").then((mod) => mod.Toaster), { ssr: false }); + /** These are like 40kb that not every user needs */ const BookingDescriptionPayment = dynamic( () => import("@components/booking/BookingDescriptionPayment") @@ -647,6 +649,7 @@ const BookingPage = ({ + ); };