Skip to content

Commit

Permalink
fix: remove version match on web (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoyuantop authored Aug 2, 2021
1 parent 4031d76 commit fe6e155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
11 changes: 2 additions & 9 deletions web/src/components/RightContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
*/
import { Tooltip, Tag, Space } from 'antd';
import { QuestionCircleOutlined } from '@ant-design/icons';
import React, { useEffect } from 'react';
import React from 'react';
import { useModel, SelectLang } from 'umi';

import { fetchVersionMatch } from '@/services/tool';
import Avatar from './AvatarDropdown';
import styles from './index.less';

Expand All @@ -41,12 +40,6 @@ const ENVTagColor = {
const GlobalHeaderRight: React.FC = () => {
const { initialState } = useModel('@@initialState');

useEffect(() => {
if (localStorage.getItem('token')) {
fetchVersionMatch();
}
}, []);

if (!initialState || !initialState.settings) {
return null;
}
Expand All @@ -62,7 +55,7 @@ const GlobalHeaderRight: React.FC = () => {
<Space className={className}>
<a href="https://apisix.apache.org/docs/apisix/getting-started" target="_blank">
<Tooltip title="Documentation">
<span className={styles.action} >
<span className={styles.action}>
<QuestionCircleOutlined />
</span>
</Tooltip>
Expand Down
19 changes: 0 additions & 19 deletions web/src/services/tool.ts

This file was deleted.

0 comments on commit fe6e155

Please sign in to comment.