From 53e71c545ec51317c83a8d9652eea183e5e97a6c Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 29 Mar 2024 19:11:40 +0530 Subject: [PATCH] api key modal - enhancements --- frontend/src/Setting.tsx | 30 ++++++++++++++-------------- frontend/src/components/Dropdown.tsx | 2 +- frontend/src/index.css | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/frontend/src/Setting.tsx b/frontend/src/Setting.tsx index f6a25853..83cf06bf 100644 --- a/frontend/src/Setting.tsx +++ b/frontend/src/Setting.tsx @@ -759,12 +759,12 @@ const SaveAPIKeyModal: React.FC = ({ apiKey, close }) => { setIsCopied(true); }; return ( -
-
- -

Please save your Key

+

Please save your Key

This is the only time your key will be shown.

@@ -782,7 +782,7 @@ const SaveAPIKeyModal: React.FC = ({ apiKey, close }) => {
@@ -836,15 +836,15 @@ const CreateAPIKeyModal: React.FC = ({ : []; return ( -
-
- -

+ Create New API Key -

-
+ +
API Key Name @@ -855,7 +855,7 @@ const CreateAPIKeyModal: React.FC = ({ onChange={(e) => setAPIKeyName(e.target.value)} />
-
+
= ({ sourcePath && createAPIKey({ name: APIKeyName, source: sourcePath.value }) } - className="float-right m-4 rounded-full bg-purple-30 px-4 py-3 text-white disabled:opacity-50" + className="float-right my-4 rounded-full bg-purple-30 px-4 py-3 text-white disabled:opacity-50" > Create diff --git a/frontend/src/components/Dropdown.tsx b/frontend/src/components/Dropdown.tsx index d5907237..3ede2f2f 100644 --- a/frontend/src/components/Dropdown.tsx +++ b/frontend/src/components/Dropdown.tsx @@ -35,7 +35,7 @@ function Dropdown({ >