From d1d7f61fe159389144eb8d6a92679fc5a00a3822 Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Wed, 21 Jun 2023 11:13:31 -0400 Subject: [PATCH] style(SubmitButton.jsx): fix formatting and indentation of code blocks (#540) feat(SubmitButton.jsx): add z-index to button to ensure it is on top of other elements --- client/src/components/Input/SubmitButton.jsx | 38 +++++--------------- 1 file changed, 8 insertions(+), 30 deletions(-) diff --git a/client/src/components/Input/SubmitButton.jsx b/client/src/components/Input/SubmitButton.jsx index 130350d81..feb3ebf54 100644 --- a/client/src/components/Input/SubmitButton.jsx +++ b/client/src/components/Input/SubmitButton.jsx @@ -26,48 +26,25 @@ export default function SubmitButton({ setSetTokenDialogOpen(true); }; - if (isSubmitting) + if (isSubmitting) { return ( ); - // // previous three dot animation - // return ( - // - // ); - else if (!isTokenProvided && endpoint !== 'openAI') { + } else if (!isTokenProvided && endpoint !== 'openAI') { return ( <> ); + } } {