diff --git a/frontend/src/agents/NewAgent.tsx b/frontend/src/agents/NewAgent.tsx index 0a601699..475571cf 100644 --- a/frontend/src/agents/NewAgent.tsx +++ b/frontend/src/agents/NewAgent.tsx @@ -11,7 +11,10 @@ import AgentDetailsModal from '../modals/AgentDetailsModal'; import ConfirmationModal from '../modals/ConfirmationModal'; import { ActiveState, Doc, Prompt } from '../models/misc'; import { - selectSelectedAgent, selectSourceDocs, selectToken, setSelectedAgent + selectSelectedAgent, + selectSourceDocs, + selectToken, + setSelectedAgent, } from '../preferences/preferenceSlice'; import PromptsModal from '../preferences/PromptsModal'; import { UserToolType } from '../settings/types'; @@ -603,9 +606,9 @@ function AddPromptModal({ newPromptContent={newPromptContent} setNewPromptContent={setNewPromptContent} editPromptName={''} - setEditPromptName={() => {}} + setEditPromptName={() => undefined} editPromptContent={''} - setEditPromptContent={() => {}} + setEditPromptContent={() => undefined} currentPromptEdit={{ id: '', name: '', type: '' }} handleAddPrompt={handleAddPrompt} /> diff --git a/frontend/src/modals/JWTModal.tsx b/frontend/src/modals/JWTModal.tsx index 5f25b217..79f012dc 100644 --- a/frontend/src/modals/JWTModal.tsx +++ b/frontend/src/modals/JWTModal.tsx @@ -1,5 +1,4 @@ import React, { useState } from 'react'; -import { useDispatch } from 'react-redux'; import Input from '../components/Input'; import { ActiveState } from '../models/misc'; @@ -19,13 +18,17 @@ export default function JWTModal({ if (modalState !== 'ACTIVE') return null; return ( - {}}> + undefined} + >
Add JWT Token
-
+