fix(frontend): 移除未使用变量与导入以消除 TS 报错
Made-with: Cursor
This commit is contained in:
@@ -965,7 +965,6 @@ const PositionList: React.FC = () => {
|
|||||||
key: 'valueAndPnl',
|
key: 'valueAndPnl',
|
||||||
render: (_: any, record: AccountPosition) => {
|
render: (_: any, record: AccountPosition) => {
|
||||||
const pnlNum = parseFloat(record.pnl || '0')
|
const pnlNum = parseFloat(record.pnl || '0')
|
||||||
const percentPnl = parseFloat(record.percentPnl || '0')
|
|
||||||
const realizedPnl = record.realizedPnl ? parseFloat(record.realizedPnl) : null
|
const realizedPnl = record.realizedPnl ? parseFloat(record.realizedPnl) : null
|
||||||
const percentRealizedPnl = record.percentRealizedPnl ? parseFloat(record.percentRealizedPnl) : null
|
const percentRealizedPnl = record.percentRealizedPnl ? parseFloat(record.percentRealizedPnl) : null
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
import { Card, Form, Button, Switch, Input, InputNumber, message, Typography, Space, Alert, Select, Table, Tag, Popconfirm, Modal } from 'antd'
|
import { Card, Form, Button, Switch, Input, InputNumber, message, Typography, Space, Alert, Select } from 'antd'
|
||||||
import { SaveOutlined, CheckCircleOutlined, ReloadOutlined, GlobalOutlined, NotificationOutlined, KeyOutlined, LinkOutlined, PlusOutlined, EditOutlined, DeleteOutlined, SendOutlined, RightOutlined } from '@ant-design/icons'
|
import { SaveOutlined, CheckCircleOutlined, ReloadOutlined, GlobalOutlined, NotificationOutlined, KeyOutlined, LinkOutlined, RightOutlined } from '@ant-design/icons'
|
||||||
import { apiService } from '../services/api'
|
import { apiService } from '../services/api'
|
||||||
import { useMediaQuery } from 'react-responsive'
|
import { useMediaQuery } from 'react-responsive'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|||||||
Reference in New Issue
Block a user