mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Preparing the repository
This commit is contained in:
@@ -25,6 +25,8 @@ export default async function Layout({children}: { children: React.ReactNode })
|
||||
return (
|
||||
// <HydrationZustand>
|
||||
// <GlobalStoreProvider>
|
||||
<>
|
||||
|
||||
<SidebarProvider>
|
||||
<div className="flex flex-col lg:flex-row w-full">
|
||||
<AppSidebar/>
|
||||
@@ -36,6 +38,7 @@ export default async function Layout({children}: { children: React.ReactNode })
|
||||
</SidebarInset>
|
||||
</div>
|
||||
</SidebarProvider>
|
||||
</>
|
||||
// </GlobalStoreProvider>
|
||||
// </HydrationZustand>
|
||||
)
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import {PageParams} from "@/types/next";
|
||||
import {redirect} from "next/navigation";
|
||||
import {getCurrentOrganizationSlug, setCurrentOrganizationSlug} from "@/features/dashboard/organization-cookie";
|
||||
|
||||
export default async function RoutePage(props: PageParams<{}>) {
|
||||
|
||||
const currentOrganizationSlug = await getCurrentOrganizationSlug()
|
||||
if (currentOrganizationSlug == "") {
|
||||
redirect(`/dashboard/default/projects`)
|
||||
}
|
||||
redirect(`/dashboard/${currentOrganizationSlug}/projects`)
|
||||
}
|
||||
Reference in New Issue
Block a user