From efea4ebb59cf3fa72b8ab18579e380695e4adfeb Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Tue, 15 Apr 2025 20:02:05 +0700 Subject: [PATCH] chore: update tab setting --- web/screens/Settings/MCP/index.tsx | 7 +++++-- web/screens/Settings/MCP/search.tsx | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/web/screens/Settings/MCP/index.tsx b/web/screens/Settings/MCP/index.tsx index b45339220..b5770ef4c 100644 --- a/web/screens/Settings/MCP/index.tsx +++ b/web/screens/Settings/MCP/index.tsx @@ -1,9 +1,12 @@ import React, { useState, useEffect, useCallback } from 'react' import { ScrollArea, Tabs } from '@janhq/joi' -import MCPSearch from './search' -import MCPConfiguration from './configuration' + import { useAtomValue } from 'jotai' + +import MCPConfiguration from './configuration' +import MCPSearch from './search' + import { showScrollBarAtom } from '@/helpers/atoms/Setting.atom' const MCP = () => { diff --git a/web/screens/Settings/MCP/search.tsx b/web/screens/Settings/MCP/search.tsx index 22aebd284..4a4696515 100644 --- a/web/screens/Settings/MCP/search.tsx +++ b/web/screens/Settings/MCP/search.tsx @@ -1,9 +1,9 @@ import React, { useState, useEffect, useCallback } from 'react' -import { npxFinder, NPMPackage } from 'npx-scope-finder' - import { Button, Input } from '@janhq/joi' import { PlusIcon } from 'lucide-react' +import { npxFinder, NPMPackage } from 'npx-scope-finder' + import { toaster } from '@/containers/Toast' interface MCPConfig {