diff --git a/frontend/src/modals/AddToolModal.tsx b/frontend/src/modals/AddToolModal.tsx index d48882a1..c11a5043 100644 --- a/frontend/src/modals/AddToolModal.tsx +++ b/frontend/src/modals/AddToolModal.tsx @@ -2,7 +2,6 @@ import React, { useRef } from 'react'; import { useTranslation } from 'react-i18next'; import userService from '../api/services/userService'; -import Exit from '../assets/exit.svg'; import { useOutsideAlerter } from '../hooks'; import { ActiveState } from '../models/misc'; import ConfigToolModal from './ConfigToolModal'; @@ -90,7 +89,7 @@ export default function AddToolModal({ return ( <> {modalState === 'ACTIVE' && ( - setModalState('INACTIVE')} className="h-[85vh] w-[90vw] md:w-[75vw]" > diff --git a/frontend/src/modals/ConfigToolModal.tsx b/frontend/src/modals/ConfigToolModal.tsx index d8585899..04553677 100644 --- a/frontend/src/modals/ConfigToolModal.tsx +++ b/frontend/src/modals/ConfigToolModal.tsx @@ -43,9 +43,7 @@ export default function ConfigToolModal({ if (modalState !== 'ACTIVE') return null; return ( - setModalState('INACTIVE')} - > + setModalState('INACTIVE')}>

{t('modals.configTool.title')} diff --git a/frontend/src/modals/CreateAPIKeyModal.tsx b/frontend/src/modals/CreateAPIKeyModal.tsx index 5495f520..128bdff6 100644 --- a/frontend/src/modals/CreateAPIKeyModal.tsx +++ b/frontend/src/modals/CreateAPIKeyModal.tsx @@ -73,7 +73,7 @@ export default function CreateAPIKeyModal({ handleFetchPrompts(); }, []); return ( - +
{t('modals.createAPIKey.label')} @@ -86,7 +86,7 @@ export default function CreateAPIKeyModal({ value={APIKeyName} label={t('modals.createAPIKey.apiKeyName')} onChange={(e) => setAPIKeyName(e.target.value)} - borderVariant='thin' + borderVariant="thin" >
diff --git a/frontend/src/modals/SaveAPIKeyModal.tsx b/frontend/src/modals/SaveAPIKeyModal.tsx index d28d2d0c..abe862cb 100644 --- a/frontend/src/modals/SaveAPIKeyModal.tsx +++ b/frontend/src/modals/SaveAPIKeyModal.tsx @@ -26,8 +26,12 @@ export default function SaveAPIKeyModal({

-

API Key

- {apiKey} +

+ API Key +

+ + {apiKey} +
)} -
- {children} -
+
{children}
); diff --git a/frontend/src/preferences/PromptsModal.tsx b/frontend/src/preferences/PromptsModal.tsx index 1a143cbd..f2512210 100644 --- a/frontend/src/preferences/PromptsModal.tsx +++ b/frontend/src/preferences/PromptsModal.tsx @@ -25,52 +25,52 @@ function AddPrompt({ return (
-

- {t('modals.prompts.addPrompt')} -

-

- {t('modals.prompts.addDescription')} -

-
- - setNewPromptName(e.target.value)} - /> -
- - {t('modals.prompts.promptText')} - -
- - -
-
- +

+ {t('modals.prompts.addPrompt')} +

+

+ {t('modals.prompts.addDescription')} +

+
+ + setNewPromptName(e.target.value)} + /> +
+ + {t('modals.prompts.promptText')} +
+ + +
+
+ +
); } diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index c8c9ef6d..f97473d5 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -571,34 +571,34 @@ function Upload({ {t('modals.uploadDoc.label')}

{!activeTab && ( -
-

- {t('modals.uploadDoc.select')} -

-
- - -
-
-)} +
+

+ {t('modals.uploadDoc.select')} +

+
+ + +
+
+ )} {activeTab === 'file' && ( <> @@ -612,7 +612,7 @@ function Upload({ label={t('modals.uploadDoc.name')} required={true} /> -
+
{t('modals.uploadDoc.choose')}