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 {
prompts: PromptInput[];
addPrompt: (prompt: string) => void;
changePrompt: (prompt: string, index: number) => void;
}
export default function PromptPanel({
prompts,
addPrompt,
changePrompt,
}: PromptPanelProps) {
const inputPrompt = useRef(null);

View File

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