From 91e6b3350bbdb8083a6308b4a022c51424a38102 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 23:45:40 +0000 Subject: [PATCH] Refactor: Add year range props to FormerNamesEditor --- src/components/admin/editors/FormerNamesEditor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/admin/editors/FormerNamesEditor.tsx b/src/components/admin/editors/FormerNamesEditor.tsx index f472a4cb..c10c7fef 100644 --- a/src/components/admin/editors/FormerNamesEditor.tsx +++ b/src/components/admin/editors/FormerNamesEditor.tsx @@ -97,6 +97,9 @@ export function FormerNamesEditor({ names, onChange, currentName }: FormerNamesE updateName(actualIndex, 'date_changed', date || undefined)} + placeholder="When was the name changed?" + fromYear={1800} + toYear={new Date().getFullYear()} />