🤓 chore: remove the useless tooltip component

This commit is contained in:
t0ng7u
2025-08-29 23:56:18 +08:00
parent b8b66c3900
commit 105b86c660
3 changed files with 3 additions and 19 deletions

View File

@@ -18,9 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Tooltip } from '@douyinfe/semi-ui';
import SelectableButtonGroup from '../../../common/ui/SelectableButtonGroup';
import { IconHelpCircle } from '@douyinfe/semi-icons';
const PricingDisplaySettings = ({
showWithRecharge,
@@ -43,17 +41,7 @@ const PricingDisplaySettings = ({
},
{
value: 'ratio',
label: (
<span className="flex items-center gap-1">
{t('显示倍率')}
<Tooltip content={t('倍率是用于系统计算不同模型的最终价格用的,如果您不理解倍率,请忽略')}>
<IconHelpCircle
size="small"
style={{ color: 'var(--semi-color-text-2)', cursor: 'help' }}
/>
</Tooltip>
</span>
),
label: t('显示倍率')
},
{
value: 'tableView',

View File

@@ -18,8 +18,8 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React, { memo, useCallback } from 'react';
import { Input, Button, Switch, Select, Divider, Tooltip } from '@douyinfe/semi-ui';
import { IconSearch, IconCopy, IconFilter, IconHelpCircle } from '@douyinfe/semi-icons';
import { Input, Button, Switch, Select, Divider } from '@douyinfe/semi-ui';
import { IconSearch, IconCopy, IconFilter } from '@douyinfe/semi-icons';
const SearchActions = memo(({
selectedRowKeys = [],
@@ -113,9 +113,6 @@ const SearchActions = memo(({
{/* 显示倍率开关 */}
<div className="flex items-center gap-2">
<span className="text-sm text-gray-600">{t('倍率')}</span>
<Tooltip content={t('倍率是用于系统计算不同模型的最终价格用的,如果您不理解倍率,请忽略')}>
<IconHelpCircle size="small" style={{ color: 'var(--semi-color-text-2)', cursor: 'help' }} />
</Tooltip>
<Switch
checked={showRatio}
onChange={setShowRatio}

View File

@@ -1891,7 +1891,6 @@
"未知供应商": "Unknown",
"共 {{count}} 个模型": "{{count}} models",
"倍率信息": "Ratio information",
"倍率是用于系统计算不同模型的最终价格用的,如果您不理解倍率,请忽略": "The ratio is used to calculate the final price of different models in the system. If you do not understand the ratio, please ignore it.",
"多密钥管理": "Multi-key management",
"总密钥数": "Total key count",
"随机模式": "Random mode",