mirror of
https://github.com/soconnor0919/hristudio.git
synced 2025-12-13 23:54:44 -05:00
feat: rewrite project
This commit is contained in:
15
src/app/studies/[id]/page.tsx
Normal file
15
src/app/studies/[id]/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
export default async function StudyPage({ params }: { params: { id: string } }) {
|
||||
const study = await db.query.studies.findFirst({
|
||||
where: (studies, { eq }) => eq(studies.id, params.id),
|
||||
with: { experiments: true }
|
||||
})
|
||||
|
||||
return (
|
||||
<div className="max-w-6xl mx-auto p-6">
|
||||
<StudyHeader study={study} />
|
||||
<Suspense fallback={<ExperimentListSkeleton />}>
|
||||
<ExperimentList studyId={params.id} />
|
||||
</Suspense>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user