fix: 修复前端编译错误

- 修复 ConfigPage.tsx 类型错误,改为提示页面(配置功能已迁移)
- 修复未使用变量警告(isMobile, Account, Space, Input, Row, Col, sourceTemplate)
- 前端编译成功,构建时间约 19 秒
This commit is contained in:
WrBug
2025-12-03 03:29:04 +08:00
parent c1003fcb12
commit cd707255b2
7 changed files with 34 additions and 233 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import { Card, Form, Button, Select, Switch, message, Typography, Space } from '
import { ArrowLeftOutlined, SaveOutlined } from '@ant-design/icons'
import { apiService } from '../services/api'
import { useAccountStore } from '../store/accountStore'
import type { Account, Leader, CopyTradingTemplate } from '../types'
import type { Leader, CopyTradingTemplate } from '../types'
import { useMediaQuery } from 'react-responsive'
import { formatUSDC } from '../utils'
@@ -13,7 +13,7 @@ const { Option } = Select
const CopyTradingAdd: React.FC = () => {
const navigate = useNavigate()
const isMobile = useMediaQuery({ maxWidth: 768 })
useMediaQuery({ maxWidth: 768 }) // 用于响应式布局,但当前页面未使用
const { accounts, fetchAccounts } = useAccountStore()
const [form] = Form.useForm()
const [loading, setLoading] = useState(false)