balibabu
commited on
Commit
·
65da567
1
Parent(s):
5f2ab18
feat: Hide search tab #2247 (#2322)
Browse files### What problem does this PR solve?
feat: Hide search tab #2247
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/layouts/components/header/index.tsx
CHANGED
@@ -4,7 +4,7 @@ import { ReactComponent as KnowledgeBaseIcon } from '@/assets/svg/knowledge-base
|
|
4 |
import { useTranslate } from '@/hooks/common-hooks';
|
5 |
import { useFetchAppConf } from '@/hooks/logic-hooks';
|
6 |
import { useNavigateWithFromState } from '@/hooks/route-hook';
|
7 |
-
import { MessageOutlined
|
8 |
import { Flex, Layout, Radio, Space, theme } from 'antd';
|
9 |
import { useCallback, useMemo } from 'react';
|
10 |
import { useLocation } from 'umi';
|
@@ -27,7 +27,7 @@ const RagHeader = () => {
|
|
27 |
() => [
|
28 |
{ path: '/knowledge', name: t('knowledgeBase'), icon: KnowledgeBaseIcon },
|
29 |
{ path: '/chat', name: t('chat'), icon: MessageOutlined },
|
30 |
-
{ path: '/search', name: t('search'), icon: SearchOutlined },
|
31 |
{ path: '/flow', name: t('flow'), icon: GraphIcon },
|
32 |
{ path: '/file', name: t('fileManager'), icon: FileIcon },
|
33 |
],
|
|
|
4 |
import { useTranslate } from '@/hooks/common-hooks';
|
5 |
import { useFetchAppConf } from '@/hooks/logic-hooks';
|
6 |
import { useNavigateWithFromState } from '@/hooks/route-hook';
|
7 |
+
import { MessageOutlined } from '@ant-design/icons';
|
8 |
import { Flex, Layout, Radio, Space, theme } from 'antd';
|
9 |
import { useCallback, useMemo } from 'react';
|
10 |
import { useLocation } from 'umi';
|
|
|
27 |
() => [
|
28 |
{ path: '/knowledge', name: t('knowledgeBase'), icon: KnowledgeBaseIcon },
|
29 |
{ path: '/chat', name: t('chat'), icon: MessageOutlined },
|
30 |
+
// { path: '/search', name: t('search'), icon: SearchOutlined },
|
31 |
{ path: '/flow', name: t('flow'), icon: GraphIcon },
|
32 |
{ path: '/file', name: t('fileManager'), icon: FileIcon },
|
33 |
],
|