|
@@ -109,8 +109,8 @@ function DataTableContent() {
|
|
|
const [selectedRowKeys, setSelectedRowKeys] = useState<React.Key[]>([])
|
|
const [selectedRowKeys, setSelectedRowKeys] = useState<React.Key[]>([])
|
|
|
const [batchCopying, setBatchCopying] = useState(false)
|
|
const [batchCopying, setBatchCopying] = useState(false)
|
|
|
|
|
|
|
|
- const [priceLower, setPriceLower] = useState<number>(0)
|
|
|
|
|
- const [priceUpper, setPriceUpper] = useState<number>(0)
|
|
|
|
|
|
|
+ // const [priceLower, setPriceLower] = useState<number>(0)
|
|
|
|
|
+ // const [priceUpper, setPriceUpper] = useState<number>(0)
|
|
|
const [balanceUsd, setBalanceUsd] = useState<number>(0)
|
|
const [balanceUsd, setBalanceUsd] = useState<number>(0)
|
|
|
|
|
|
|
|
const fetchBalance = async (tokenAddress: string, userAddress: string, price: number) => {
|
|
const fetchBalance = async (tokenAddress: string, userAddress: string, price: number) => {
|
|
@@ -294,8 +294,8 @@ function DataTableContent() {
|
|
|
positionAddress: record.positionAddress,
|
|
positionAddress: record.positionAddress,
|
|
|
nftMintAddress: record.nftMintAddress,
|
|
nftMintAddress: record.nftMintAddress,
|
|
|
maxUsdValue: quickCopyAmount,
|
|
maxUsdValue: quickCopyAmount,
|
|
|
- priceLower,
|
|
|
|
|
- priceUpper,
|
|
|
|
|
|
|
+ // priceLower,
|
|
|
|
|
+ // priceUpper,
|
|
|
}),
|
|
}),
|
|
|
})
|
|
})
|
|
|
.then((res) => res.json())
|
|
.then((res) => res.json())
|
|
@@ -352,8 +352,8 @@ function DataTableContent() {
|
|
|
positionAddress: record.positionAddress,
|
|
positionAddress: record.positionAddress,
|
|
|
nftMintAddress: record.nftMintAddress,
|
|
nftMintAddress: record.nftMintAddress,
|
|
|
maxUsdValue: quickCopyAmount,
|
|
maxUsdValue: quickCopyAmount,
|
|
|
- priceLower,
|
|
|
|
|
- priceUpper,
|
|
|
|
|
|
|
+ // priceLower,
|
|
|
|
|
+ // priceUpper,
|
|
|
}),
|
|
}),
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -680,11 +680,11 @@ function DataTableContent() {
|
|
|
fetchData(1, 100, selectedPoolAddress, sortField)
|
|
fetchData(1, 100, selectedPoolAddress, sortField)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function handleReset() {
|
|
|
|
|
- setPriceLower(0)
|
|
|
|
|
- setPriceUpper(0)
|
|
|
|
|
- setQuickCopyAmount(1)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // function handleReset() {
|
|
|
|
|
+ // setPriceLower(0)
|
|
|
|
|
+ // setPriceUpper(0)
|
|
|
|
|
+ // setQuickCopyAmount(1)
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
// 子表格的列定义
|
|
// 子表格的列定义
|
|
|
const childColumns = [
|
|
const childColumns = [
|
|
@@ -834,7 +834,7 @@ function DataTableContent() {
|
|
|
step={0.1}
|
|
step={0.1}
|
|
|
onChange={(value) => setQuickCopyAmount(value as number)}
|
|
onChange={(value) => setQuickCopyAmount(value as number)}
|
|
|
/>
|
|
/>
|
|
|
- <span className="mr-2 ml-2">价格下拉(%):</span>
|
|
|
|
|
|
|
+ {/* <span className="mr-2 ml-2">价格下拉(%):</span>
|
|
|
<InputNumber
|
|
<InputNumber
|
|
|
placeholder="价格下拉(%)"
|
|
placeholder="价格下拉(%)"
|
|
|
value={priceLower}
|
|
value={priceLower}
|
|
@@ -852,7 +852,7 @@ function DataTableContent() {
|
|
|
/>
|
|
/>
|
|
|
<Button type="primary" className="ml-2 mr-2" onClick={handleReset}>
|
|
<Button type="primary" className="ml-2 mr-2" onClick={handleReset}>
|
|
|
重置
|
|
重置
|
|
|
- </Button>
|
|
|
|
|
|
|
+ </Button> */}
|
|
|
{selectedRowKeys.length > 0 && (
|
|
{selectedRowKeys.length > 0 && (
|
|
|
<Button
|
|
<Button
|
|
|
type="primary"
|
|
type="primary"
|