Persons: other people's charts with package slots, list page, switcher
- charts.kind own/person; a new person uses a 'person' unit (not refunded on delete); person packages and an unlimited entitlement; admins unlimited - a person's birth data can be corrected within an hour (admins any time) - /kepletek list with tiles, /kepletek/uj, correction page, mock person packages, chart page title switches between charts keeping the tab Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
"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("/kepletek")}
|
||||
onSaved={() => {
|
||||
router.push(`/kepletek/${id}`);
|
||||
router.refresh();
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user