Files
sorsfonalak/services/frontend/src/app/kepletek/[id]/javitas/EditPerson.tsx
T
fecoandClaude Opus 5.5 0791998c13
CI / test (push) Failing after 41s
CI / build (push) Skipped
CI / deploy (push) Skipped
Own chart back on the Képletem menu; persons get their own menu, page and a tile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-17 11:20:26 +00:00

30 lines
608 B
TypeScript

"use client";
import { useRouter } from "next/navigation";
import { BirthForm } from "@/app/profil/BirthForm";
import type { BirthData } from "@/lib/types";
export function EditPerson({
id,
name,
initial,
}: {
id: string;
name: string;
initial: BirthData & { placeName: string | null; region: string | null };
}) {
const router = useRouter();
return (
<BirthForm
initial={initial}
person={{ chartId: id, name }}
onCancel={() => router.push("/szemelyek")}
onSaved={() => {
router.push(`/kepletek/${id}`);
router.refresh();
}}
/>
);
}