From ef8814b622a8818d6985111c5c0192e463a66ea6 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 26 Aug 2020 10:43:17 +0200 Subject: [PATCH] add cleanup --- src/components/organisms/AssetActions/Pool/Add.tsx | 4 ---- src/components/organisms/AssetActions/Pool/index.tsx | 1 - 2 files changed, 5 deletions(-) diff --git a/src/components/organisms/AssetActions/Pool/Add.tsx b/src/components/organisms/AssetActions/Pool/Add.tsx index efb5b805c..64f39395d 100644 --- a/src/components/organisms/AssetActions/Pool/Add.tsx +++ b/src/components/organisms/AssetActions/Pool/Add.tsx @@ -17,13 +17,11 @@ function calculatePercent(percent: number, num: number) { export default function Add({ setShowAdd, - dtSymbol, poolAddress, totalPoolTokens, totalBalance }: { setShowAdd: (show: boolean) => void - dtSymbol: string poolAddress: string totalPoolTokens: string totalBalance: Balance @@ -31,7 +29,6 @@ export default function Add({ const { ocean, accountId, balance } = useOcean() const [amount, setAmount] = useState() const [isLoading, setIsLoading] = useState() - const [newDtAmount, setNewDtAmount] = useState() const newPoolTokens = totalBalance && @@ -85,7 +82,6 @@ export default function Add({

You will receive:

-
diff --git a/src/components/organisms/AssetActions/Pool/index.tsx b/src/components/organisms/AssetActions/Pool/index.tsx index 243b19580..708a5b2f5 100644 --- a/src/components/organisms/AssetActions/Pool/index.tsx +++ b/src/components/organisms/AssetActions/Pool/index.tsx @@ -96,7 +96,6 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement { ) : showAdd ? (