From 00d807495d5561252183ea175d24469d79bddb30 Mon Sep 17 00:00:00 2001 From: Brad Ullman Date: Tue, 28 Mar 2023 01:31:03 -0700 Subject: [PATCH] update prompts to be tabbable (#241) --- components/Promptbar/Prompt.tsx | 57 +++++++++++++++------------------ 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/components/Promptbar/Prompt.tsx b/components/Promptbar/Prompt.tsx index 913d2ec..2bec35a 100644 --- a/components/Promptbar/Prompt.tsx +++ b/components/Promptbar/Prompt.tsx @@ -39,9 +39,9 @@ export const PromptComponent: FC = ({ }, [isRenaming, isDeleting]); return ( - <> +
{(isDeleting || isRenaming) && ( -
- + - { e.stopPropagation(); setIsDeleting(false); }} - /> + > + +
)} {!isDeleting && !isRenaming && ( -
- +
)} - {showModal && ( = ({ onUpdatePrompt={onUpdatePrompt} /> )} - +
); };