diff --git a/src/components/PositionDetails/SinglePositionInfo/BoxInfo.tsx b/src/components/PositionDetails/SinglePositionInfo/BoxInfo.tsx index ae134a8d4..e2c231e6a 100644 --- a/src/components/PositionDetails/SinglePositionInfo/BoxInfo.tsx +++ b/src/components/PositionDetails/SinglePositionInfo/BoxInfo.tsx @@ -20,6 +20,7 @@ export const BoxInfo: React.FC<{ tokenA: BoxInfoToken tokenB: BoxInfoToken showBalance?: boolean + showValue?: boolean swapHandler?: () => void showLoader?: boolean isBalanceLoading: boolean @@ -29,6 +30,7 @@ export const BoxInfo: React.FC<{ tokenB, tokenA, showBalance = false, + showValue = false, swapHandler, showLoader = false, isBalanceLoading @@ -112,22 +114,30 @@ export const BoxInfo: React.FC<{ {showPrefix(tokenXPrintValue, prefixConfig)} - {showBalance ? ( + {showBalance || showValue ? ( - - Balance:{' '} - {isBalanceLoading ? ( - Loading - ) : ( - formatNumber(tokenA.balance) - )}{' '} - {tokenA.name} - + {showBalance ? ( + + Balance:{' '} + {isBalanceLoading ? ( + Loading + ) : ( + formatNumber(tokenA.balance) + )}{' '} + {tokenA.name} + + ) : ( +
+ )} {typeof tokenA.usdValue !== 'undefined' && tokenA.price ? ( - {showBalance ? ( + {showBalance || showValue ? ( - - Balance:{' '} - {isBalanceLoading ? ( - Loading - ) : ( - formatNumber(tokenB.balance) - )}{' '} - {tokenB.name} - + {showBalance ? ( + + Balance:{' '} + {isBalanceLoading ? ( + Loading + ) : ( + formatNumber(tokenB.balance) + )}{' '} + {tokenB.name} + + ) : ( +
+ )} {typeof tokenB.usdValue !== 'undefined' && tokenB.price ? ( = ({