Open ilhamgum opened 1 year ago
Hello, i wanna achieve placing only 1 line in my layout file, is it possible? Because for now i must put component in each file that want to use toast() to be functional.
Expected:
<main className={`${hideTopNavbar ? "mb-[80px]" : "mt-[45px] mb-[80px]"}`} > <Toaster> {children} </Toaster> </main>
This works for me
<main className={`${hideTopNavbar ? "mb-[80px]" : "mt-[45px] mb-[80px]"}`} > <Toaster /> {children} </main>
Hello, i wanna achieve placing only 1 line in my layout file, is it possible? Because for now i must put component in each file that want to use toast() to be functional.
Expected: