minor tweak
This commit is contained in:
parent
238c9066bc
commit
d8e8d7752a
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue