refactor: remove duplicate ClientSidebar component

Bug fix: Dubbele sidebar verwijderd in patient detail routes.

ClientSidebar was een duplicate van EPDSidebar's Level 2 navigatie.
EPDSidebar is al context-aware en switcht automatisch tussen Level 1
(behandelaar context) en Level 2 (patient context) navigatie.

Changes:
- Removed: ClientSidebar component (117 lines duplicate code)
- Removed: EPDLayoutClient wrapper (conditional sidebar hiding)
- Simplified: Patient detail layout uses only PatientLayoutClient
- Restored: EPD layout to direct EPDSidebar rendering

Result: Single sidebar component, -117 lines code, DRY principle restored

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
colinislit
2025-11-23 20:22:15 +01:00
parent 24c43a693d
commit 50dc2a57d7
3 changed files with 17 additions and 120 deletions

View File

@@ -20,7 +20,7 @@ export default async function EPDLayout({ children }: EPDLayoutProps) {
return (
<div className="min-h-screen bg-slate-50 flex">
{/* Sidebar - Fixed 240px width on desktop */}
{/* Sidebar - Context-aware (switches between Level 1 and Level 2) */}
<EPDSidebar
userEmail={user?.email}
userName={user?.user_metadata?.full_name}
@@ -33,9 +33,7 @@ export default async function EPDLayout({ children }: EPDLayoutProps) {
{/* Page Content - Scrollable */}
<main className="flex-1 overflow-auto bg-white">
<div className="p-8">
{children}
</div>
{children}
</main>
</div>
</div>