You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/03/10 05:16:28 UTC

[incubator-apisix-dashboard] 03/05: feat: remove HeaderSearch

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch update-boilerplate
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git

commit f006e5c2e035cc939ed792e80dfe1dee652aaae0
Author: juzhiyuan <jj...@gmail.com>
AuthorDate: Tue Mar 10 13:09:48 2020 +0800

    feat: remove HeaderSearch
---
 src/components/GlobalHeader/RightContent.tsx | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/src/components/GlobalHeader/RightContent.tsx b/src/components/GlobalHeader/RightContent.tsx
index 3040ceb..363df48 100644
--- a/src/components/GlobalHeader/RightContent.tsx
+++ b/src/components/GlobalHeader/RightContent.tsx
@@ -4,7 +4,6 @@ import React from 'react';
 import { connect } from 'dva';
 import { ConnectProps, ConnectState } from '@/models/connect';
 import Avatar from './AvatarDropdown';
-import HeaderSearch from '../HeaderSearch';
 import SelectLang from '../SelectLang';
 import styles from './index.less';
 
@@ -30,29 +29,6 @@ const GlobalHeaderRight: React.SFC<GlobalHeaderRightProps> = props => {
 
   return (
     <div className={className}>
-      <HeaderSearch
-        className={`${styles.action} ${styles.search}`}
-        placeholder="站内搜索"
-        defaultValue="umi ui"
-        options={[
-          { label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>, value: 'umi ui' },
-          {
-            label: <a href="next.ant.design">Ant Design</a>,
-            value: 'Ant Design',
-          },
-          {
-            label: <a href="https://protable.ant.design/">Pro Table</a>,
-            value: 'Pro Table',
-          },
-          {
-            label: <a href="https://prolayout.ant.design/">Pro Layout</a>,
-            value: 'Pro Layout',
-          },
-        ]}
-        // onSearch={value => {
-        //   //console.log('input', value);
-        // }}
-      />
       <Tooltip title="使用文档">
         <a
           target="_blank"