diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-06-01 20:59:10 -0400 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-06-01 20:59:10 -0400 | 
| commit | 75af2ad952e1137ca3e1d52f92330468bb3f0281 (patch) | |
| tree | 8e100d150d6ed1506699b82c0c9939e0fa7d7960 /extension/react-app | |
| parent | 4d4d82084bdd45039eb72ef9c6c4582cd770b4d5 (diff) | |
| download | sncontinue-75af2ad952e1137ca3e1d52f92330468bb3f0281.tar.gz sncontinue-75af2ad952e1137ca3e1d52f92330468bb3f0281.tar.bz2 sncontinue-75af2ad952e1137ca3e1d52f92330468bb3f0281.zip  | |
enter secrets directly into .env file
Diffstat (limited to 'extension/react-app')
| -rw-r--r-- | extension/react-app/src/components/StepContainer.tsx | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx index ec601ea7..5e979b34 100644 --- a/extension/react-app/src/components/StepContainer.tsx +++ b/extension/react-app/src/components/StepContainer.tsx @@ -80,6 +80,13 @@ function StepContainer(props: StepContainerProps) {    const [open, setOpen] = useState(false);    const [isHovered, setIsHovered] = useState(false);    const naturalLanguageInputRef = useRef<HTMLTextAreaElement>(null); +  const userInputRef = useRef<HTMLInputElement>(null); + +  useEffect(() => { +    if (userInputRef?.current) { +      userInputRef.current.focus(); +    } +  }, [userInputRef]);    useEffect(() => {      if (isHovered) { @@ -136,6 +143,7 @@ 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") {  | 
