diff --git a/src/app/NpcDialoguesPanel.tsx b/src/app/NpcDialoguesPanel.tsx index 2db8e066..c452f4fb 100644 --- a/src/app/NpcDialoguesPanel.tsx +++ b/src/app/NpcDialoguesPanel.tsx @@ -13,11 +13,6 @@ interface NpcDialoguesPanelProps { onSetDialogueTitle(dialogueId: string, title: string): void; onAddDialogueLine(dialogueId: string): void; onDeleteDialogueLine(dialogueId: string, lineId: string): void; - onSetDialogueLineSpeaker( - dialogueId: string, - lineId: string, - speakerName: string | null - ): void; onSetDialogueLineText(dialogueId: string, lineId: string, text: string): void; } @@ -44,7 +39,6 @@ export function NpcDialoguesPanel({ onSetDialogueTitle, onAddDialogueLine, onDeleteDialogueLine, - onSetDialogueLineSpeaker, onSetDialogueLineText }: NpcDialoguesPanelProps) { const selectedDialogue = @@ -61,9 +55,9 @@ export function NpcDialoguesPanel({ ? null : dialogues.find((dialogue) => dialogue.id === resolvedDefaultDialogueId) ?? null; const [titleDraft, setTitleDraft] = useState(selectedDialogue?.title ?? ""); - const [lineDrafts, setLineDrafts] = useState< - Record - >({}); + const [lineDrafts, setLineDrafts] = useState>( + {} + ); useEffect(() => { setTitleDraft(selectedDialogue?.title ?? ""); @@ -74,7 +68,6 @@ export function NpcDialoguesPanel({ selectedDialogue.lines.map((line) => [ line.id, { - speakerName: line.speakerName ?? "", text: line.text } ]) @@ -95,7 +88,6 @@ export function NpcDialoguesPanel({ (() => { const line = dialogue.lines.find((candidate) => candidate.id === lineId); return { - speakerName: line?.speakerName ?? "", text: line?.text ?? "" }; })(); @@ -224,33 +216,6 @@ export function NpcDialoguesPanel({ x -