mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 22:31:12 -05:00
Refactor: Add year range props to FormerNamesEditor
This commit is contained in:
@@ -97,6 +97,9 @@ export function FormerNamesEditor({ names, onChange, currentName }: FormerNamesE
|
|||||||
<DatePicker
|
<DatePicker
|
||||||
date={name.date_changed ? new Date(name.date_changed) : undefined}
|
date={name.date_changed ? new Date(name.date_changed) : undefined}
|
||||||
onSelect={(date) => updateName(actualIndex, 'date_changed', date || undefined)}
|
onSelect={(date) => updateName(actualIndex, 'date_changed', date || undefined)}
|
||||||
|
placeholder="When was the name changed?"
|
||||||
|
fromYear={1800}
|
||||||
|
toYear={new Date().getFullYear()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user