feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,6 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
Check as ActionCheck,
|
||||
ArrowUpRight as ActionArrowUpRight,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useEffect, useState, useContext } from 'react';
|
||||
import { Segmented } from 'antd';
|
||||
import {
|
||||
@@ -28,7 +32,7 @@ import {
|
||||
Banner,
|
||||
Progress,
|
||||
} from '@/components/ui';
|
||||
import { ArrowUpRight, Crown, Zap, Check, Clock } from 'lucide-react';
|
||||
import { Crown, Zap, Clock } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { UserContext } from '../../context/User';
|
||||
import { API, showError, showSuccess, renderQuota } from '../../helpers';
|
||||
@@ -441,7 +445,12 @@ const MembershipPanel = () => {
|
||||
type='button'
|
||||
onClick={() => handlePlanClick(plan)}
|
||||
aria-pressed={isSelected}
|
||||
className={`rc-plan ${isSelected ? 'selected' : ''}`}
|
||||
className={[
|
||||
'app-action-button',
|
||||
`rc-plan ${isSelected ? 'selected' : ''}`,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
{(plan.badge || plan.is_recommend) && (
|
||||
<span className='rc-plan-badge'>
|
||||
@@ -467,15 +476,15 @@ const MembershipPanel = () => {
|
||||
)}
|
||||
<ul className='rc-plan-features'>
|
||||
<li>
|
||||
<Check size={12} />
|
||||
<ActionCheck size={12} />
|
||||
{t('每日自动重置额度')}
|
||||
</li>
|
||||
<li>
|
||||
<Check size={12} />
|
||||
<ActionCheck size={12} />
|
||||
{t('会员额度优先消耗')}
|
||||
</li>
|
||||
<li>
|
||||
<Check size={12} />
|
||||
<ActionCheck size={12} />
|
||||
{t('额度用完转账户余额')}
|
||||
</li>
|
||||
</ul>
|
||||
@@ -485,9 +494,9 @@ const MembershipPanel = () => {
|
||||
{subText && <small>{subText}</small>}
|
||||
</span>
|
||||
{isSelected ? (
|
||||
<Check size={14} />
|
||||
<ActionCheck size={14} />
|
||||
) : (
|
||||
<ArrowUpRight size={14} />
|
||||
<ActionArrowUpRight size={14} />
|
||||
)}
|
||||
</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user