mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: dashboard left bar improvements
This commit is contained in:
parent
3413e6ca73
commit
6fea7ec1af
16 changed files with 124 additions and 29 deletions
|
|
@ -1,5 +1,6 @@
|
|||
'use client';
|
||||
import { OrgProvider } from "@components/Contexts/OrgContext";
|
||||
import AuthProvider from "@components/Security/AuthContext";
|
||||
import { getAPIUrl } from "@services/config/config";
|
||||
import { swrFetcher } from "@services/utils/ts/requests";
|
||||
import "@styles/globals.css";
|
||||
|
|
@ -8,10 +9,12 @@ import useSWR from "swr";
|
|||
export default function RootLayout({ children, params }: { children: React.ReactNode, params: any }) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
<AuthProvider orgslug={params.orgslug}>
|
||||
<OrgProvider orgslug={params.orgslug}>
|
||||
{children}
|
||||
</OrgProvider>
|
||||
</div>
|
||||
{children}
|
||||
</OrgProvider>
|
||||
</AuthProvider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue