minor tweak

This commit is contained in:
Hayk Martiros 2022-11-27 13:18:12 -08:00
parent 238c9066bc
commit d8e8d7752a
2 changed files with 0 additions and 5 deletions

View File

@ -5,13 +5,11 @@ import { useRef } from "react";
interface PromptPanelProps { interface PromptPanelProps {
prompts: PromptInput[]; prompts: PromptInput[];
addPrompt: (prompt: string) => void;
changePrompt: (prompt: string, index: number) => void; changePrompt: (prompt: string, index: number) => void;
} }
export default function PromptPanel({ export default function PromptPanel({
prompts, prompts,
addPrompt,
changePrompt, changePrompt,
}: PromptPanelProps) { }: PromptPanelProps) {
const inputPrompt = useRef(null); const inputPrompt = useRef(null);

View File

@ -367,9 +367,6 @@ export default function Home() {
<PromptPanel <PromptPanel
prompts={promptInputs} prompts={promptInputs}
addPrompt={(prompt: string) => {
setPromptInputs([...promptInputs, { prompt: prompt }]);
}}
changePrompt={(prompt: string, index: number) => { changePrompt={(prompt: string, index: number) => {
const newPromptInputs = [...promptInputs]; const newPromptInputs = [...promptInputs];
newPromptInputs[index].prompt = prompt; newPromptInputs[index].prompt = prompt;