- Update EPD header to fetch and display real client data from database - Add loading state while fetching client information - Improve client name and birth date formatting - Rename ClientDetailPage component to ClientRedirect for clarity - Fix import path for ReleaseSidebar in documentation layout 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
484 B
TypeScript
19 lines
484 B
TypeScript
import { redirect } from 'next/navigation';
|
|
|
|
interface ClientDetailPageProps {
|
|
params: Promise<{ id: string }>;
|
|
}
|
|
|
|
/**
|
|
* Redirect route: /epd/clients/[id] -> /epd/clients/[id]/dashboard
|
|
*
|
|
* Wanneer een gebruiker direct naar /epd/clients/[id] navigeert,
|
|
* wordt deze automatisch doorgestuurd naar het dashboard.
|
|
*/
|
|
export default async function ClientRedirect({
|
|
params,
|
|
}: ClientDetailPageProps) {
|
|
const { id } = await params;
|
|
redirect(`/epd/clients/${id}/dashboard`);
|
|
}
|