feat: migrate clients module to patients + add docs
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
import { getPatient } from '../actions';
|
||||
import { ClientHeader } from './components/client-header';
|
||||
import { ClientSidebar } from './components/client-sidebar';
|
||||
|
||||
export default async function PatientDetailLayout({
|
||||
children,
|
||||
params,
|
||||
@@ -10,23 +6,6 @@ export default async function PatientDetailLayout({
|
||||
params: Promise<{ id: string }>;
|
||||
}) {
|
||||
const { id } = await params;
|
||||
const patient = await getPatient(id);
|
||||
|
||||
return (
|
||||
<div className="h-screen flex flex-col">
|
||||
{/* Client Header */}
|
||||
<ClientHeader patient={patient} />
|
||||
|
||||
{/* Main Content Area with Sidebar */}
|
||||
<div className="flex-1 flex overflow-hidden">
|
||||
{/* Sidebar Navigation */}
|
||||
<ClientSidebar patientId={id} />
|
||||
|
||||
{/* Page Content */}
|
||||
<main className="flex-1 overflow-y-auto bg-slate-50">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user