mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
(fix/lint) empty methods
This commit is contained in:
@@ -11,7 +11,10 @@ import AgentDetailsModal from '../modals/AgentDetailsModal';
|
|||||||
import ConfirmationModal from '../modals/ConfirmationModal';
|
import ConfirmationModal from '../modals/ConfirmationModal';
|
||||||
import { ActiveState, Doc, Prompt } from '../models/misc';
|
import { ActiveState, Doc, Prompt } from '../models/misc';
|
||||||
import {
|
import {
|
||||||
selectSelectedAgent, selectSourceDocs, selectToken, setSelectedAgent
|
selectSelectedAgent,
|
||||||
|
selectSourceDocs,
|
||||||
|
selectToken,
|
||||||
|
setSelectedAgent,
|
||||||
} from '../preferences/preferenceSlice';
|
} from '../preferences/preferenceSlice';
|
||||||
import PromptsModal from '../preferences/PromptsModal';
|
import PromptsModal from '../preferences/PromptsModal';
|
||||||
import { UserToolType } from '../settings/types';
|
import { UserToolType } from '../settings/types';
|
||||||
@@ -603,9 +606,9 @@ function AddPromptModal({
|
|||||||
newPromptContent={newPromptContent}
|
newPromptContent={newPromptContent}
|
||||||
setNewPromptContent={setNewPromptContent}
|
setNewPromptContent={setNewPromptContent}
|
||||||
editPromptName={''}
|
editPromptName={''}
|
||||||
setEditPromptName={() => {}}
|
setEditPromptName={() => undefined}
|
||||||
editPromptContent={''}
|
editPromptContent={''}
|
||||||
setEditPromptContent={() => {}}
|
setEditPromptContent={() => undefined}
|
||||||
currentPromptEdit={{ id: '', name: '', type: '' }}
|
currentPromptEdit={{ id: '', name: '', type: '' }}
|
||||||
handleAddPrompt={handleAddPrompt}
|
handleAddPrompt={handleAddPrompt}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
|
||||||
|
|
||||||
import Input from '../components/Input';
|
import Input from '../components/Input';
|
||||||
import { ActiveState } from '../models/misc';
|
import { ActiveState } from '../models/misc';
|
||||||
@@ -19,13 +18,17 @@ export default function JWTModal({
|
|||||||
if (modalState !== 'ACTIVE') return null;
|
if (modalState !== 'ACTIVE') return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<WrapperModal className="p-4" isPerformingTask={true} close={() => {}}>
|
<WrapperModal
|
||||||
|
className="p-4"
|
||||||
|
isPerformingTask={true}
|
||||||
|
close={() => undefined}
|
||||||
|
>
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
<span className="text-lg text-jet dark:text-bright-gray">
|
<span className="text-lg text-jet dark:text-bright-gray">
|
||||||
Add JWT Token
|
Add JWT Token
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="relative mt-5 mb-4">
|
<div className="relative mb-4 mt-5">
|
||||||
<Input
|
<Input
|
||||||
name="JWT Token"
|
name="JWT Token"
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
Reference in New Issue
Block a user