fix: toast error message,social legacy

This commit is contained in:
Théo LAGACHE
2026-02-26 15:29:00 +01:00
parent c8d390726c
commit 8d414080a4
11 changed files with 269 additions and 273 deletions
+2 -7
View File
@@ -1,4 +1,4 @@
import { ReactNode, Suspense } from "react";
import { ReactNode } from "react";
import { redirect } from "next/navigation";
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
@@ -6,7 +6,6 @@ import { AppSidebar } from "@/components/wrappers/dashboard/common/sidebar/app-s
import { Header } from "@/features/layout/Header";
import { currentUser } from "@/lib/auth/current-user";
import { ThemeMetaUpdater } from "@/features/browser/theme-meta-updater";
import { ErrorLayout } from "@/components/wrappers/common/error-layout";
export default async function Layout({ children }: { children: ReactNode }) {
const user = await currentUser();
@@ -19,11 +18,7 @@ export default async function Layout({ children }: { children: ReactNode }) {
<AppSidebar />
<SidebarInset>
<Header />
<Suspense>
<ErrorLayout>
<main className="h-full">{children}</main>
</ErrorLayout>
</Suspense>
<main className="h-full">{children}</main>
</SidebarInset>
</div>
</SidebarProvider>