mirror of
https://github.com/soconnor0919/hristudio.git
synced 2025-12-11 22:54:45 -05:00
- Replace firstName/lastName with name field in users API route - Update user formatting in UsersTab component - Add email fallback when name is not available
28 lines
690 B
TypeScript
28 lines
690 B
TypeScript
import { Sidebar } from "~/components/sidebar";
|
|
import { cn } from "~/lib/utils";
|
|
import { StudyProvider } from "~/context/StudyContext";
|
|
import { ActiveStudyProvider } from "~/context/active-study";
|
|
|
|
export default function DashboardLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<ActiveStudyProvider>
|
|
<StudyProvider>
|
|
<div className="flex h-screen overflow-hidden">
|
|
<Sidebar />
|
|
<main className={cn(
|
|
"flex-1 overflow-y-auto",
|
|
"lg:pt-8 p-8",
|
|
"pt-[calc(3.5rem+2rem)]"
|
|
)}>
|
|
{children}
|
|
</main>
|
|
</div>
|
|
</StudyProvider>
|
|
</ActiveStudyProvider>
|
|
);
|
|
}
|