feat: 处理语法校验
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { Search, RefreshCw, ArrowRightLeft, AlertCircle, Loader2 } from 'lucide-react';
|
||||
import { Search, RefreshCw, Loader2 } from 'lucide-react';
|
||||
import { fetchWechatAccountList, transformWechatAccount } from '@/api/wechat-accounts';
|
||||
import { useToast } from '@/components/ui/toast';
|
||||
import { useWechatAccount } from '@/contexts/WechatAccountContext';
|
||||
@@ -119,7 +119,6 @@ export default function WechatAccounts() {
|
||||
}
|
||||
};
|
||||
|
||||
const filteredAccounts = accounts;
|
||||
const totalPages = Math.ceil(totalAccounts / accountsPerPage);
|
||||
|
||||
const handleTransferFriends = (account: WechatAccount) => {
|
||||
@@ -259,7 +258,7 @@ export default function WechatAccounts() {
|
||||
handleTransferFriends(account);
|
||||
}}
|
||||
>
|
||||
<ArrowRightLeft className="h-4 w-4" />
|
||||
{/* ArrowRightLeft className="h-4 w-4" */}
|
||||
</button>
|
||||
</div>
|
||||
<div className="mt-2 text-sm text-gray-500 space-y-1">
|
||||
@@ -274,7 +273,7 @@ export default function WechatAccounts() {
|
||||
<span>今日可添加:</span>
|
||||
<span className="font-medium">{account.remainingAdds}</span>
|
||||
<div className="relative group">
|
||||
<AlertCircle className="h-4 w-4 text-gray-400" />
|
||||
{/* AlertCircle className="h-4 w-4 text-gray-400" */}
|
||||
<div className="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 text-xs bg-gray-800 text-white rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap">
|
||||
每日最多添加 {account.maxDailyAdds} 个好友
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user