From 959a55e36c33c17629ea20a5e28acbe6bda1fa60 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 29 Mar 2024 04:13:12 +0530 Subject: [PATCH] adding dark mode - api key --- frontend/src/Setting.tsx | 17 ++++++++--------- frontend/src/components/Dropdown.tsx | 16 ++++++---------- frontend/tailwind.config.cjs | 3 ++- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/frontend/src/Setting.tsx b/frontend/src/Setting.tsx index a27f3d86..f6a25853 100644 --- a/frontend/src/Setting.tsx +++ b/frontend/src/Setting.tsx @@ -760,7 +760,7 @@ const SaveAPIKeyModal: React.FC = ({ apiKey, close }) => { }; return (
-
+
@@ -771,10 +771,10 @@ const SaveAPIKeyModal: React.FC = ({ apiKey, close }) => {

API Key

- {apiKey} + {apiKey}
@@ -806,8 +805,6 @@ const CreateAPIKeyModal: React.FC = ({ value: string; } | null>(null); const docs = useSelector(selectSourceDocs); - console.log(docs); - const extractDocPaths = () => docs ? docs @@ -840,11 +837,13 @@ const CreateAPIKeyModal: React.FC = ({ return (
-
+
-

Create New API Key

+

+ Create New API Key +

API Key Name diff --git a/frontend/src/components/Dropdown.tsx b/frontend/src/components/Dropdown.tsx index 67fd54c3..d5907237 100644 --- a/frontend/src/components/Dropdown.tsx +++ b/frontend/src/components/Dropdown.tsx @@ -8,7 +8,6 @@ function Dropdown({ showDelete, onDelete, placeholder, - className, }: { options: | string[] @@ -28,14 +27,11 @@ function Dropdown({ const [isOpen, setIsOpen] = useState(false); return (