ability to create trials added; form uploader cleaned up

This commit is contained in:
2024-10-03 16:35:19 -04:00
parent 93e2b0323b
commit 7ef9180026
19 changed files with 559 additions and 151 deletions

View File

@@ -3,13 +3,17 @@ import { Sidebar } from "~/components/sidebar";
import { StudyHeader } from "~/components/study/StudyHeader";
import { Toaster } from "~/components/ui/toaster";
const Layout = ({ children }: PropsWithChildren) => {
interface LayoutProps {
pageTitle: string;
}
const Layout = ({ children, pageTitle }: PropsWithChildren<LayoutProps>) => {
return (
<div className="flex h-screen">
<Sidebar />
<main className="flex-1 overflow-y-auto bg-gradient-to-b from-[hsl(var(--gradient-start))] to-[hsl(var(--gradient-end))]">
<div className="container mx-auto space-y-4 p-4 pt-16 lg:pt-4">
<StudyHeader />
<StudyHeader pageTitle={pageTitle} />
{children}
<Toaster />
</div>