Use Readonly props and optional chaining/nullish coalescing

Mark component props as Readonly<> across 15 component files and
simplify edit-player-character field access with optional chaining
and nullish coalescing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-03-14 15:13:39 +01:00
parent 8efba288f7
commit 32b69f8df1
16 changed files with 43 additions and 41 deletions

View File

@@ -21,7 +21,7 @@ export function PlayerManagement({
onEdit,
onDelete,
onCreate,
}: PlayerManagementProps) {
}: Readonly<PlayerManagementProps>) {
useEffect(() => {
if (!open) return;
function handleKeyDown(e: KeyboardEvent) {