diff options
| author | Ty Dunn <ty@tydunn.com> | 2023-06-05 22:54:18 +0200 | 
|---|---|---|
| committer | Ty Dunn <ty@tydunn.com> | 2023-06-05 22:54:18 +0200 | 
| commit | 25aa481ef8b341e2216393da0768c9953bf25fec (patch) | |
| tree | 90c8206e21e570f381d7c49c6ebefeeac25f352e /extension/react-app/src/components/StepContainer.tsx | |
| parent | 5f3d975cb3bef13769cb19ff3f604fe42cc9ee5d (diff) | |
| parent | 8e5f5fc5c92ebc77578ffda5ce1fbc35bea60016 (diff) | |
| download | sncontinue-25aa481ef8b341e2216393da0768c9953bf25fec.tar.gz sncontinue-25aa481ef8b341e2216393da0768c9953bf25fec.tar.bz2 sncontinue-25aa481ef8b341e2216393da0768c9953bf25fec.zip  | |
Merge branch 'main' of github.com:continuedev/continue into main
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
| -rw-r--r-- | extension/react-app/src/components/StepContainer.tsx | 20 | 
1 files changed, 5 insertions, 15 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx index 903f9b94..f54d4d75 100644 --- a/extension/react-app/src/components/StepContainer.tsx +++ b/extension/react-app/src/components/StepContainer.tsx @@ -23,6 +23,7 @@ import {  import { HistoryNode } from "../../../schema/HistoryNode";  import ReactMarkdown from "react-markdown";  import ContinueButton from "./ContinueButton"; +import InputAndButton from "./InputAndButton";  interface StepContainerProps {    historyNode: HistoryNode; @@ -177,22 +178,11 @@ function StepContainer(props: StepContainerProps) {            )}            {props.historyNode.step.name === "Waiting for user input" && ( -            <input -              ref={userInputRef} -              className="m-auto p-2 rounded-md border-1 border-solid text-white w-3/4 border-gray-200 bg-vsc-background" -              onKeyDown={(e) => { -                if (e.key === "Enter") { -                  props.onUserInput(e.currentTarget.value); -                } +            <InputAndButton +              onUserInput={(value) => { +                props.onUserInput(value);                }} -              type="text" -              onSubmit={(ev) => { -                props.onUserInput(ev.currentTarget.value); -              }} -              onClick={(e) => { -                e.stopPropagation(); -              }} -            /> +            ></InputAndButton>            )}            {props.historyNode.step.name === "Waiting for user confirmation" && (              <>  | 
