From 7b4a643ef0d739f8a1e3cdf38518a695050e4a37 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev <eyurtsev@gmail.com> Date: Wed, 20 Mar 2024 22:00:33 -0400 Subject: [PATCH] CreateExtractor: Enable input only if there's user input (#66) --- frontend/app/components/CreateExtractor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/CreateExtractor.tsx b/frontend/app/components/CreateExtractor.tsx index b22074e..9790eef 100644 --- a/frontend/app/components/CreateExtractor.tsx +++ b/frontend/app/components/CreateExtractor.tsx @@ -139,7 +139,8 @@ const CreateExtractor = ({}) => { type="submit" icon={<Icon as={ChatBubbleBottomCenterTextIcon} />} aria-label="OK" - colorScheme="blue" + colorScheme={userInput === "" ? "gray" : "blue"} + disabled={userInput === ""} /> )} </form>