mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🔧 refactor: Clean up imports in MCPPanel component
- Merged import statements for better organization. - Removed unused `reinitializeMCPServerMutation`
This commit is contained in:
parent
7f35aacebb
commit
4080c7c30c
1 changed files with 9 additions and 14 deletions
|
|
@ -1,24 +1,20 @@
|
||||||
import { Constants } from 'librechat-data-provider';
|
|
||||||
import { ChevronLeft } from 'lucide-react';
|
import { ChevronLeft } from 'lucide-react';
|
||||||
import React, { useState, useCallback, useMemo } from 'react';
|
|
||||||
import {
|
|
||||||
useUpdateUserPluginsMutation,
|
|
||||||
useReinitializeMCPServerMutation,
|
|
||||||
} from 'librechat-data-provider/react-query';
|
|
||||||
import { useQueryClient } from '@tanstack/react-query';
|
import { useQueryClient } from '@tanstack/react-query';
|
||||||
import { QueryKeys } from 'librechat-data-provider';
|
import React, { useState, useCallback, useMemo } from 'react';
|
||||||
|
import { Constants, QueryKeys } from 'librechat-data-provider';
|
||||||
|
import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';
|
||||||
import type { TUpdateUserPlugins } from 'librechat-data-provider';
|
import type { TUpdateUserPlugins } from 'librechat-data-provider';
|
||||||
import { Button } from '~/components/ui';
|
|
||||||
import { useGetStartupConfig } from '~/data-provider';
|
|
||||||
import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries';
|
|
||||||
import MCPPanelSkeleton from './MCPPanelSkeleton';
|
|
||||||
import { useToastContext } from '~/Providers';
|
|
||||||
import { useLocalize } from '~/hooks';
|
|
||||||
import {
|
import {
|
||||||
CustomUserVarsSection,
|
CustomUserVarsSection,
|
||||||
ServerInitializationSection,
|
ServerInitializationSection,
|
||||||
type ConfigFieldDetail,
|
type ConfigFieldDetail,
|
||||||
} from '~/components/ui/MCP';
|
} from '~/components/ui/MCP';
|
||||||
|
import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries';
|
||||||
|
import { useGetStartupConfig } from '~/data-provider';
|
||||||
|
import MCPPanelSkeleton from './MCPPanelSkeleton';
|
||||||
|
import { useToastContext } from '~/Providers';
|
||||||
|
import { Button } from '~/components/ui';
|
||||||
|
import { useLocalize } from '~/hooks';
|
||||||
|
|
||||||
export default function MCPPanel() {
|
export default function MCPPanel() {
|
||||||
const localize = useLocalize();
|
const localize = useLocalize();
|
||||||
|
|
@ -27,7 +23,6 @@ export default function MCPPanel() {
|
||||||
const [selectedServerNameForEditing, setSelectedServerNameForEditing] = useState<string | null>(
|
const [selectedServerNameForEditing, setSelectedServerNameForEditing] = useState<string | null>(
|
||||||
null,
|
null,
|
||||||
);
|
);
|
||||||
const reinitializeMCPMutation = useReinitializeMCPServerMutation();
|
|
||||||
const queryClient = useQueryClient();
|
const queryClient = useQueryClient();
|
||||||
|
|
||||||
// Get real connection status from MCPManager
|
// Get real connection status from MCPManager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue