visuddhinanda 3 лет назад
Родитель
Сommit
ade40799bd
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      dashboard/src/components/library/HeadBar.tsx

+ 10 - 1
dashboard/src/components/library/HeadBar.tsx

@@ -1,8 +1,9 @@
 import { Link } from "react-router-dom";
-import { Layout, Space } from "antd";
+import { Button, Layout, Space } from "antd";
 import { FormattedMessage } from "react-intl";
 import type { MenuProps } from "antd";
 import { Menu } from "antd";
+import { SearchOutlined } from "@ant-design/icons";
 
 import img_banner from "../../assets/library/images/wikipali_logo_library.svg";
 import UiLangSelect from "../general/UiLangSelect";
@@ -150,6 +151,14 @@ const Widget = ({ selectedKeys = "" }: IWidgetHeadBar) => {
         </div>
         <div>
           <Space>
+            <Link to="/search/home">
+              <Button
+                style={{ color: "white" }}
+                icon={<SearchOutlined />}
+                ghost
+                type="text"
+              />
+            </Link>
             <ToStudio />
             <SignInAvatar />
             <UiLangSelect />