ソースを参照

rm: custom price

lushdog@outlook.com 1 週間 前
コミット
157bc06882
1 ファイル変更13 行追加13 行削除
  1. 13 13
      src/app/components/DataTable.tsx

+ 13 - 13
src/app/components/DataTable.tsx

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