From 48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Mon, 28 Aug 2023 19:43:21 -0700
Subject: feat: :lipstick: fixed footer and change button color

---
 extension/react-app/src/pages/gui.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'extension/react-app/src/pages/gui.tsx')

diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index ac7c5070..35c17444 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -202,6 +202,13 @@ function GUI(props: GUIProps) {
   const onMainTextInput = (event?: any) => {
     if (mainTextInputRef.current) {
       let input = (mainTextInputRef.current as any).inputValue;
+
+      if (input.startsWith("#") && (input.length === 7 || input.length === 4)) {
+        localStorage.setItem("continueButtonColor", input);
+        (mainTextInputRef.current as any).setInputValue("");
+        return;
+      }
+
       // cmd+enter to /edit
       if (isMetaEquivalentKeyPressed(event)) {
         input = `/edit ${input}`;
-- 
cgit v1.2.3-70-g09d2

